/* --- PREMIUM TYPOGRAPHY IMPORTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

/* --- AUTHENTICATION LAYOUT --- */
.auth-wrapper {
    background-color: #FAF8F5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    font-family: 'Inter', sans-serif;
}

.auth-card {
    background-color: #ffffff;
    padding: 3.5rem 3rem;
    border-radius: 12px;
    border: 1px solid rgba(59, 51, 44, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 480px;
}

/* Logo Section */
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Lora', serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: #2c2c2c;
    margin-bottom: 2.5rem;
    letter-spacing: -1px;
}

/* Top Navigation Tabs */
.auth-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(59, 51, 44, 0.1);
    margin-bottom: 2.5rem;
    padding-bottom: 10px;
}
.auth-tabs {
    display: flex;
    gap: 1.5rem;
}
.auth-tab {
    text-decoration: none;
    color: #888888;
    font-size: 1.05rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 11px;
    transition: color 0.2s ease;
}
.auth-tab:hover {
    color: #3B332C;
}
.auth-tab.active {
    color: #3B332C;
}
.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #3B332C;
    border-radius: 2px 2px 0 0;
}
.auth-back {
    text-decoration: none;
    color: #888888;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}
.auth-back:hover {
    color: #3B332C;
}

/* Form Inputs */
.auth-form .input {
    margin-bottom: 1.5rem;
    position: relative;
}
.auth-form label {
    display: block;
    margin-bottom: 0.4rem;
    color: #302D2A;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}
.label-row label {
    margin-bottom: 0;
}
.forgot-link {
    font-size: 0.85rem;
    color: #3B332C;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.forgot-link:hover {
    border-color: #3B332C;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    background-color: #ffffff;
    border: 1px solid rgba(59, 51, 44, 0.2);
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.2s ease;
    color: #302D2A;
}
.auth-form input::placeholder {
    color: #a0a0a0;
}
.auth-form input:focus {
    border-color: #3B332C;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 51, 44, 0.08);
}

/* Submit Button */
.btn-submit-full {
    width: 100%;
    background-color: #3B332C;
    color: #FAF8F5;
    padding: 14px;
    border: none;
    border-radius: 4px;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    margin-top: 2rem;
}
.btn-submit-full:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Grid for Side-by-Side (First/Last name) */
.auth-form .row {
    display: flex;
    gap: 1rem;
}
.auth-form .column {
    flex: 1;
}

/* PASSWORD VISIBILITY TOGGLE */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 45px !important;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888888;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #3B332C;
}

.toggle-password:focus {
    outline: none;
}

/* INLINE VALIDATION ERROR MESSAGES */
.error-message {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    font-weight: 500;
    display: block;
}

/* Turns the input border red when there is an error */
.input.error input {
    border-color: #d32f2f;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.1);
}

/* Ensure the error input keeps the red border on focus */
.input.error input:focus {
    border-color: #b71c1c;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2);
}

/* SUCCESS NOTIFICATIONS */
.message.success {
    background-color: #FAF8F5;
    color: #3B332C;
    border: 1px solid rgba(59, 51, 44, 0.2);
    padding: 12px 16px;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: block;
}
