/* Reset and Base Styles */
:root {
    --navbar-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "proxima-nova", sans-serif;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.02rem;
    color: #101820;
    background-color: #F4EFEC;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: "playfair-display", serif;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.0169rem;
}

h2 {
    font-size: 2.3125rem;
    line-height: 2.775rem;
    letter-spacing: 0.0231rem;
}

h3 {
    font-size: 1.6875rem;
    line-height: 2.025rem;
    letter-spacing: 0.0169rem;
}

p {
    font-family: "proxima-nova", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5rem;
    letter-spacing: 0.02rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main.container {
    padding-top: var(--navbar-height, 80px);
}

/* Navigation */
.navbar {
    background: #F4EFEC;
    border-bottom: 1px solid #e9eff3;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--navbar-height, 80px);
    min-height: var(--navbar-height, 80px);
}

.nav-logo a {
    display: block;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-logo a:hover {
    opacity: 0.7;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-btn {
    background: #fff;
    color: #101820;
    border: 1px solid #e9eff3;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: "proxima-nova", sans-serif;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: #f8f9fa;
    border-color: #d1d9e0;
    transform: translateY(-1px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 24, 32, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 32px;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 10px 40px rgba(16, 24, 32, 0.15);
    border: 1px solid #e9eff3;
}

.close {
    color: #666;
    float: right;
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
    position: absolute;
    top: 16px;
    right: 20px;
    transition: color 0.2s ease;
}

.close:hover {
    color: #101820;
}

/* Auth Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 8px;
    color: #101820;
    font-family: "playfair-display", serif;
    font-weight: 400;
    font-size: 1.6875rem;
    line-height: 2.025rem;
    letter-spacing: 0.0169rem;
}

.auth-form p {
    text-align: center;
    margin-bottom: 32px;
    color: #666;
    font-family: "proxima-nova", sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.3rem;
    letter-spacing: 0.02rem;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #101820;
    font-family: "proxima-nova", sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.02rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e9eff3;
    border-radius: 6px;
    font-family: "proxima-nova", sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: 0.02rem;
    transition: all 0.2s ease;
    background: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: #101820;
    box-shadow: 0 0 0 3px rgba(16, 24, 32, 0.1);
}

.submit-btn {
    width: 100%;
    background: #101820;
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    font-family: "proxima-nova", sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.02rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.submit-btn:hover {
    background: #2a2f36;
    transform: translateY(-1px);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        padding: 30px 20px;
        width: 95%;
        max-width: calc(100vw - 20px);
        box-sizing: border-box;
    }
}

/* Prevent horizontal overflow on mobile */
@media (max-width: 430px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    * {
        max-width: 100%;
    }
    
    .navbar {
        width: 100vw;
        max-width: 100vw;
    }
    
    .nav-container {
        max-width: 100vw;
        box-sizing: border-box;
    }
}
