/* Auth Pages Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

Background Image - Full Coverage
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-image: url('/static/assets/bg-image_new.jpeg'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Dark overlay for better contrast */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* ============================================
   SIGN UP PAGE LAYOUT (Centered Card)
   ============================================ */
.auth-container.signup-layout {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.signup-layout .logo-container {
    text-align: left;
    margin-bottom: 30px;
}

.signup-layout .logo {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Signup Card - Glassy Effect */
.signup-layout .auth-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 50px 60px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ============================================
   SIGN IN PAGE LAYOUT (Grid with Text Left)
   ============================================ */
.auth-container.signin-layout {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
}

/* Left Side - Welcome Text with Glassy Background */
.signin-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 80px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.signin-left .logo {
    width: 100px;
    height: auto;
    margin-bottom: 40px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.welcome-text {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 50px;
}

.welcome-text h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.welcome-text p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 15px;
}

.welcome-text .highlight {
    color: #fbbf24;
    font-weight: 600;
}

/* Right Side - Sign In Form */
.signin-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.signin-right .auth-card {
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
    width: 100%;
    max-width: 450px;
    padding: 60px 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
}

/* Title Styling */
.auth-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: left;
    margin-bottom: 0px;
}
.verify-title {
    font-size: 32px;
    font-weight: 600;
    color: #f1f1f1;
    text-align: center;
    margin-bottom: 10px;
}

/* White title for glassy backgrounds */
.signup-layout .auth-title,
.centered-layout .auth-title {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* White text for confirmation pages */
.centered-layout .confirmation-text {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.centered-layout .email-highlight {
    color: #fbbf24;
    font-weight: 700;
}

.centered-layout .resend-text {
    color: rgba(255, 255, 255, 0.9);
}

.centered-layout .resend-link {
    color: #fbbf24;
    font-weight: 700;
}

.centered-layout .resend-link:hover {
    color: #fcd34d;
}

/* Form Styling */
.auth-form {
    width: 100%;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

/* White labels for glassy backgrounds */
.signup-layout .form-label {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.form-control,
.form-select {
    height: 50px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

/* Glassy form inputs for signup */
.signup-layout .form-control,
.signup-layout .form-select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #1a1a1a;
}

.signup-layout .form-control:focus,
.signup-layout .form-select:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
    outline: none;
}

.signup-layout .input-group-text.country-flag {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-right: none;
}

.form-control:focus,
.form-select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #9ca3af;
}

.signup-layout .form-control::placeholder {
    color: #6b7280;
}

/* Country Flag Input */
.input-group-text.country-flag {
    background: white;
    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 0 12px;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #1a1a1a;
}

/* Sex Options */
.sex-options {
    display: flex;
    gap: 30px;
    padding-top: 8px;
}

.form-check-inline {
    margin-right: 0;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}

.form-check-label {
    font-size: 14px;
    color: #1a1a1a;
    margin-left: 8px;
    cursor: pointer;
}

/* White text for glassy backgrounds */
.signup-layout .form-check-label {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.signup-layout .form-check-input {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.signup-layout .form-check-input:checked {
    background-color: #fbbf24;
    border-color: #fbbf24;
}

/* Create Account Button */
.btn-create-account {
    width: 100%;
    height: 55px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-create-account:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-create-account:active {
    transform: translateY(0);
}

/* Sign In Text */
.signin-text {
    font-size: 14px;
    color: #6b7280;
    margin-top: 20px;
    margin-bottom: 0;
}

/* White text for glassy backgrounds */
.signup-layout .signin-text {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.signin-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-layout .signin-link {
    color: #fbbf24;
    font-weight: 700;
}

.signin-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.signup-layout .signin-link:hover {
    color: #fcd34d;
}

/* Sign In Page Specific */
.forgot-password-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.remember-me-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

/* Email Confirmation Page */
.confirmation-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.confirmation-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.confirmation-text {
    font-size: 16px;
    color: #6b7280;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 0px;
}

.email-highlight {
    color: #1a1a1a;
    font-weight: 600;
}

.resend-text {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin-top: 20px;
}

.resend-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.resend-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Alert Messages */
.alert {
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ============================================
   EMAIL CONFIRMATION & OTHER PAGES
   ============================================ */
.auth-container.centered-layout {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.centered-layout .logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.centered-layout .logo {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.centered-layout .auth-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 50px 60px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet - 1024px and below */
@media (max-width: 1024px) {
    .signin-left {
        padding: 40px 50px;
    }

    .signin-right {
        padding: 40px 50px;
    }

    .welcome-text h1 {
        font-size: 40px;
    }

    .welcome-text p {
        font-size: 16px;
    }
}

/* Tablet - 768px and below */
@media (max-width: 768px) {
    /* Sign In Grid becomes single column */
    .auth-container.signin-layout {
        grid-template-columns: 1fr;
    }

    .signin-left {
        padding: 40px 30px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        min-height: 40vh;
    }

    .signin-left .logo {
        width: 70px;
        margin-bottom: 30px;
    }

    .welcome-text h1 {
        font-size: 32px;
    }

    .welcome-text p {
        font-size: 15px;
    }

    .signin-right {
        padding: 40px 30px;
        min-height: 60vh;
    }

    /* Signup Layout */
    .signup-layout .auth-card {
        padding: 40px 30px;
    }

    .signup-layout .logo {
        width: 60px;
    }

    /* Centered Layout */
    .centered-layout .auth-card {
        padding: 40px 30px;
    }

    .auth-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .form-control,
    .form-select {
        height: 45px;
        font-size: 13px;
    }

    .btn-create-account {
        height: 50px;
        font-size: 15px;
    }
}

/* Mobile - 576px and below */
@media (max-width: 576px) {
    .signin-left {
        padding: 30px 20px;
        min-height: auto;
    }

    .signin-left .logo {
        width: 60px;
        margin-bottom: 20px;
    }

    .welcome-text h1 {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .welcome-text p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .signin-right {
        padding: 30px 20px;
    }

    .signin-right .auth-card {
        max-width: 100%;
    }

    /* Signup Layout */
    .signup-layout {
        padding: 20px 15px;
    }

    .signup-layout .auth-card {
        padding: 30px 20px;
    }

    .signup-layout .logo {
        width: 50px;
    }

    /* Centered Layout */
    .centered-layout {
        padding: 20px 15px;
    }

    .centered-layout .auth-card {
        padding: 30px 20px;
    }

    .centered-layout .logo {
        width: 60px;
    }

    .auth-title {
        font-size: 20px;
    }

    .sex-options {
        gap: 20px;
    }

    .form-control,
    .form-select {
        height: 44px;
        font-size: 13px;
    }

    .btn-create-account {
        height: 48px;
        font-size: 14px;
    }
}

/* Extra small devices - 400px and below */
@media (max-width: 400px) {
    .welcome-text h1 {
        font-size: 22px;
    }

    .welcome-text p {
        font-size: 13px;
    }

    .auth-title {
        font-size: 18px;
    }

    .signin-left,
    .signin-right,
    .signup-layout .auth-card,
    .centered-layout .auth-card {
        padding: 25px 15px;
    }
}
