/* CSS Variables */
:root {
    --primary-color: #1f6f78;
    --secondary-color: #c9a24d;
    --accent-dark: #0f3f46;
    --text-dark: #0b2e33;
    --text-muted: #5f6f73;
    --background-white: #fdfcf9;
    --background-light: #f4f6f6;
    --hover-bg: #eef6f5;
    --border-color: #d6e2e0;
    --border-secondary-color: #c9a24d59;

    /* Typography - Headings */
    --heading-1-size: 32px;
    --heading-1-weight: 700;
    --heading-2-size: 24px;
    --heading-2-weight: 700;
    --heading-3-size: 20px;
    --heading-3-weight: 600;
    --heading-4-size: 18px;
    --heading-4-weight: 600;

    /* Typography - Paragraphs */
    --paragraph-large-size: 16px;
    --paragraph-large-weight: 500;
    --paragraph-medium-size: 15px;
    --paragraph-medium-weight: 600;
    --paragraph-normal-size: 14px;
    --paragraph-normal-weight: 500;
    --paragraph-small-size: 13px;
    --paragraph-small-weight: 500;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-white);
    overflow-x: hidden;
}

/* Page Wrapper - Unified for all auth pages */
.auth_page_wrapper {
    display: flex;
    min-height: 100vh;
}

/* Left Side - Image Section (50%) */
.auth_image_section {
    flex: 1;
    background: linear-gradient(to bottom, rgb(255 255 255 / 85%) 0%,
     rgba(31, 111, 120, 0.95) 60%, rgba(201, 162, 77, 0.95) 100%), 
     url(https://images.unsplash.com/photo-1516321318423-f06f85e504b3?w=1200) center / cover;
    /* background: linear-gradient(135deg, rgba(31, 111, 120, 0.95), rgba(201, 162, 77, 0.95)),
        url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?w=1200') center/cover; */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--background-white);
}

.auth_image_section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(45, 212, 191, 0.3) 0%, transparent 60%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

/* Brand Section */
.auth_brand {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 20px;
}

.auth_brand_logo {
        width: 175px;
    height: 100px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.auth_brand_logo i {
    font-size: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth_brand_title {
    font-size: 36px;
    font-weight: var(--heading-1-weight);
    margin-bottom: 12px;
}

.auth_brand_subtitle {
    font-size: var(--paragraph-large-size);
    font-weight: var(--paragraph-normal-weight);
    opacity: 0.9;
}

/* Features Section */
.auth_features {
    position: relative;
    z-index: 1;
    max-width: 450px;
}

.auth_feature_item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  
}

.auth_feature_icon {
    width: 45px;
    height: 45px;
    background-color: var(--background-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth_feature_icon i {
    font-size: 20px;
    color: var(--primary-color);
}

.auth_feature_text h4 {
    font-size: var(--paragraph-medium-size);
    font-weight: var(--paragraph-medium-weight);
    margin-bottom: 4px;
}

.auth_feature_text p {
    font-size: var(--paragraph-small-size);
    margin: 0;
    opacity: 0.85;
}

/* Right Side - Form Section (50%) */
.auth_form_section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: var(--background-white);
}

.auth_form_container {
    width: 100%;
    max-width: 460px;
}

/* Larger container for register page */
.auth_form_container.register {
    max-width: 560px;
}

/* Form Header */
.auth_form_header {
    text-align: center;
    margin-bottom: 30px;
}

.auth_form_logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.auth_form_logo i {
    font-size: 24px;
    color: var(--background-white);
}

.auth_form_title {
    font-size: var(--heading-3-size);
    font-weight: var(--heading-3-weight);
    color: var(--text-dark);
    margin-bottom: 8px;
}

.auth_form_subtitle {
    font-size: var(--paragraph-normal-size);
    color: var(--text-muted);
    font-weight: var(--paragraph-normal-weight);
}

/* Form Card */
.auth_form_card {
    background-color: var(--background-white);
}

/* Alert Message */
.alert_message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: var(--paragraph-small-size);
    display: none;
    align-items: center;
    gap: 10px;
}

.alert_message.error {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.alert_message.success {
    background-color: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

.alert_message i {
    font-size: 16px;
}

/* Form Groups */
.form_group {
    margin-bottom: 20px;
}

/* Form Labels */
.form_label {
    display: block;
    font-size: var(--paragraph-small-size);
    font-weight: var(--paragraph-medium-weight);
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* Input Wrapper */
.input_wrapper {
    position: relative;
}

/* Form Inputs */
.form_input {
    width: 100%;
    padding: 13px 20px 13px 45px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: var(--paragraph-normal-size);
    font-weight: var(--paragraph-normal-weight);
    color: var(--text-dark);
    background-color: var(--background-white);
    transition: all 0.3s ease;
}

.form_input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(31, 111, 120, 0.08);
    background-color: var(--background-white);
}

.form_input::placeholder {
    color: var(--text-muted);
    font-weight: var(--paragraph-normal-weight);
}

/* Input Icons */
.input_icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
    transition: color 0.3s ease;
}

.form_input:focus+.input_icon {
    color: var(--primary-color);
}

/* Password Toggle */
.password_toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.password_toggle:hover {
    color: var(--primary-color);
}

/* Buttons - Unified for all auth pages */
.auth_button {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--background-white);
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: var(--paragraph-medium-size);
    font-weight: var(--paragraph-medium-weight);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(31, 111, 120, 0.2);
    text-decoration: none;
}

.auth_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 111, 120, 0.3);
}

.auth_button:active {
    transform: translateY(0);
}

.auth_button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth_button i {
    transition: transform 0.3s ease;
}

.auth_button:hover i:not(.fa-spinner) {
    transform: translateX(5px);
}


/* Footer */
.auth_footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth_footer_text {
    font-size: var(--paragraph-small-size);
    color: var(--text-muted);
}

.auth_footer_link {
    color: var(--primary-color);
    font-weight: var(--paragraph-medium-weight);
    text-decoration: none;
    margin-left: 5px;
}

.auth_footer_link:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* Logo Image */
.logo-img {
    width: 100%;
    height: auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth_form_container {
    animation: fadeInUp 0.6s ease-out;
}

.auth_brand {
    animation: fadeInUp 0.6s ease-out;
}

.auth_feature_item {
    animation: fadeInUp 0.6s ease-out;
}

.auth_feature_item:nth-child(1) {
    animation-delay: 0.1s;
}

.auth_feature_item:nth-child(2) {
    animation-delay: 0.2s;
}

.auth_feature_item:nth-child(3) {
    animation-delay: 0.3s;
}

/* Responsive Design */
@media (max-width: 992px) {
    .auth_page_wrapper {
        flex-direction: column;
    }

    .auth_image_section {
        min-height: 40vh;
        padding: 40px 30px;
    }

    .auth_brand_title {
        font-size: 28px;
    }

    .auth_features {
        display: none;
    }

    .auth_form_section {
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .auth_image_section {
        padding: 30px 20px;
        min-height: 35vh;
    }

    .auth_brand_logo {
        width: 60px;
        height: 60px;
    }

    .auth_brand_logo i {
        font-size: 30px;
    }

    .auth_brand_title {
        font-size: 24px;
    }

    .auth_brand_subtitle {
        font-size: var(--paragraph-small-size);
    }

    .auth_form_section {
        padding: 30px 20px;
    }

    .auth_form_title {
        font-size: var(--paragraph-large-size);
    }

    .form_input {
        padding: 12px 18px 12px 42px;
    }

    .social_login {
        grid-template-columns: 1fr;
    }
}


/* register page specific styles */
.form_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.terms_checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    cursor: pointer;
}

.terms_checkbox input[type="checkbox"] {
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.terms_checkbox label {
    font-size: var(--paragraph-small-size);
    font-weight: var(--paragraph-normal-weight);
    color: var(--text-dark);
    cursor: pointer;
    margin: 0;
}

.terms_link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--paragraph-medium-weight);
}

.terms_link:hover {
    text-decoration: underline;
}

/* Password Strength Indicator */
.password_strength {
    margin-top: 8px;
    font-size: var(--paragraph-small-size);
    display: none;
}

.strength_bar {
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

.strength_fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength_fill.weak {
    width: 33%;
    background-color: #ff4444;
}

.strength_fill.medium {
    width: 66%;
    background-color: #ffaa00;
}

.strength_fill.strong {
    width: 100%;
    background-color: #00C851;
}

/* Responsive Design for Register Page */
@media (max-width: 576px) {
    .form_row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* forgot password page specific styles  */
.back_to_login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--paragraph-small-size);
    font-weight: var(--paragraph-medium-weight);
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.back_to_login:hover {
    color: var(--accent-dark);
}

.back_to_login i {
    transition: transform 0.3s ease;
}

.back_to_login:hover i {
    transform: translateX(-3px);
}

/* Instructions Box */
.reset_instructions {
    background-color: var(--hover-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px 18px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.reset_instructions_icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reset_instructions_icon i {
    font-size: 16px;
    color: var(--background-white);
}

.reset_instructions_text {
    flex: 1;
}

.reset_instructions_text h4 {
    font-size: var(--paragraph-medium-size);
    font-weight: var(--paragraph-medium-weight);
    color: var(--text-dark);
    margin-bottom: 5px;
}

.reset_instructions_text p {
    font-size: var(--paragraph-small-size);
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Success State */
.success_state {
    display: none;
    text-align: center;
    padding: 30px 20px;
}

.success_icon_wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease-out;
}

.success_icon_wrapper i {
    font-size: 36px;
    color: var(--background-white);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success_state h3 {
    font-size: var(--heading-3-size);
    font-weight: var(--heading-3-weight);
    color: var(--text-dark);
    margin-bottom: 12px;
}

.success_state p {
    font-size: var(--paragraph-normal-size);
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.success_state .email_highlight {
    color: var(--primary-color);
    font-weight: var(--paragraph-medium-weight);
}

/* Resend Link */
.resend_link {
    font-size: var(--paragraph-small-size);
    color: var(--text-muted);
    margin-top: 20px;
}

.resend_link a {
    color: var(--primary-color);
    font-weight: var(--paragraph-medium-weight);
    text-decoration: none;
    cursor: pointer;
}

.resend_link a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* Additional Help Section */
.additional_help {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.help_text {
    font-size: var(--paragraph-small-size);
    color: var(--text-muted);
    margin-bottom: 12px;
}

.help_links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.help_link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--paragraph-small-size);
    font-weight: var(--paragraph-medium-weight);
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.help_link:hover {
    color: var(--accent-dark);
}

.help_link i {
    font-size: 14px;
}

/* LOGIN PAGE SPECIFIC STYLES */
.form_options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember_me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember_me input[type="checkbox"] {
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.remember_me label {
    font-size: var(--paragraph-small-size);
    font-weight: var(--paragraph-normal-weight);
    color: var(--text-dark);
    cursor: pointer;
    margin: 0;
}

.forgot_password {
    font-size: var(--paragraph-small-size);
    font-weight: var(--paragraph-medium-weight);
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot_password:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}