/* Modern Vitelize Auth UI - Redesign with Background Images */

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    background-color: #f8f9fa;
}

/* Background Image Container */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.6;
    z-index: 0;
}

@media (max-width: 768px) {
    body::before {
        background-attachment: scroll;
        opacity: 1;
        background-size: cover;
        background-position: center;
    }
}

/* Overlay for better text readability */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.75) 100%);
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 768px) {
    body::after {
        background: transparent; /* No overlay on mobile - background should be clear */
    }
}

/* Main Container */
.auth-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    min-height: 100vh;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* When illustration section exists, use space-between */
.auth-container:has(.auth-illustration-section) {
    justify-content: space-between;
}

@media (max-width: 768px) {
    .auth-container {
        padding: 0;
        align-items: flex-start;
        min-height: 100vh;
        gap: 0;
        justify-content: flex-start;
    }
}

/* Form Section - White Card */
.auth-form-section {
    margin: 0 auto;
    width: 100%;
    max-width: 480px;
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.6s ease-out;
}

@media (max-width: 768px) {
    .auth-form-section {
        position: relative;
        width: 100%;
        max-width: 100%;
        padding: 24px 24px 40px 24px;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        min-height: 100vh;
        overflow-y: auto;
        animation: fadeInUp 0.4s ease-out;
    }
    
    /* Handle removed as requested */
}

/* Logo Container */
.logo-container {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.logo svg {
    height: 50px;
    width: auto;
}

/* Vitelize Branding */
.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #2563EB;
    margin: 0;
    letter-spacing: -0.5px;
}

.logo-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2563EB 0%, #3B82F6 100%);
    border-radius: 2px;
    margin: 8px auto 0;
}

/* Form Title */
.form-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    text-align: left;
    color: #101828;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .form-title {
        font-size: 22px;
        margin-bottom: 28px;
    }
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

/* Labels */
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #344054;
    margin-bottom: 8px;
    text-align: left;
}

.form-label-checkbox {
    font-size: 14px;
    font-weight: 500;
    color: #344054;
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

/* Input Fields */
.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #E4E7EC;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background: #FFFFFF;
    color: #101828;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
    color: #98A2B3;
}

/* Phone Input Group */
.phone-input-group {
    display: flex;
    gap: 0;
}

.country-code {
    display: none; /* Hidden as requested */
}

.phone-input {
    flex: 1;
}

/* OTP Input Group */
.otp-input-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 8px;
}

.otp-input {
    width: 56px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 1.5px solid #E4E7EC;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: #FFFFFF;
    color: #101828;
}

.otp-input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

@media (max-width: 768px) {
    .otp-input-group {
        gap: 8px;
    }
    
    .otp-input {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Submit Button - Blue Primary */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.9;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

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

/* Checkbox */
.form-checkbox {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    border: 1.5px solid #E4E7EC !important;
    border-radius: 6px !important;
    cursor: pointer;
    position: relative;
    top: 2px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background-color: #FFFFFF !important;
}

.form-checkbox:checked {
    background-color: #2563EB !important;
    border-color: #2563EB !important;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3e%3c/svg%3e") !important;
    background-size: 12px 12px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Links */
.create-account-link {
    text-align: center;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.create-account-link a {
    color: #1E88E5;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.create-account-link a:hover {
    color: #1565C0;
    text-decoration: underline;
}

.create-account-link a.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.create-account-link a svg {
    width: 16px;
    height: 16px;
}

/* Error Messages */
.text-danger {
    color: #DC2626;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

/* Profile Page Styles */
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 24px 0;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item label {
    font-size: 13px;
    font-weight: 500;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    color: #101828;
    padding: 12px 16px;
    background: #F9FAFB;
    border-radius: 8px;
    border: 1px solid #E4E7EC;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    width: fit-content;
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.badge-warning {
    background: #FEF3C7;
    color: #B45309;
    border: 1px solid #FDE68A;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.secondary-btn {
    width: 100%;
    padding: 14px 24px;
    background: #F9FAFB;
    color: #344054;
    border: 1.5px solid #E4E7EC;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.secondary-btn:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
    color: #1F2937;
    text-decoration: none;
}

.logout-btn {
    width: 100%;
    padding: 14px 24px;
    background: #DC2626;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.logout-btn:hover {
    background: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.cancel-btn {
    width: 100%;
    padding: 14px 24px;
    background: transparent;
    color: #667085;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.cancel-btn:hover {
    background: #F9FAFB;
    color: #344054;
    text-decoration: none;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin: 16px 0;
}

.alert-warning {
    background: #FEF3C7;
    color: #B45309;
    border: 1px solid #FDE68A;
}

.password-requirements {
    background: #F9FAFB;
    border: 1px solid #E4E7EC;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.requirements-title {
    font-size: 14px;
    font-weight: 600;
    color: #344054;
    margin-bottom: 8px;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    font-size: 13px;
    color: #667085;
    padding: 4px 0;
    position: relative;
    padding-left: 20px;
}

.password-requirements li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2563EB;
    font-weight: bold;
}


/* Done Page */
.done-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@media (max-width: 768px) {
    .done-container {
        padding: 0;
        align-items: flex-start;
    }
}

.message-card {
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.05);
    max-width: 500px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

@media (max-width: 768px) {
    .message-card {
        position: relative;
        width: 100%;
        max-width: 100%;
        padding: 24px 24px 40px 24px;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        min-height: 100vh;
        overflow-y: auto;
        animation: fadeInUp 0.4s ease-out;
    }
    
    /* Handle removed as requested */
}

.message-card h6 {
    font-size: 22px;
    font-weight: 600;
    color: #101828;
    margin: 0 0 16px 0;
}

.message-card p {
    font-size: 15px;
    color: #6B7280;
    line-height: 1.6;
    margin: 0;
}

/* Autocomplete Menu */
.ac-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 1000;
    background: #FFFFFF;
    border: 1.5px solid #E4E7EC;
    border-radius: 12px;
    margin-top: 8px;
    max-height: 220px;
    overflow: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ac-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #344054;
}

.ac-item:hover,
.ac-item.active {
    background: #F9FAFB;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpFromBottom {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-title {
        font-size: 22px;
        margin-bottom: 16px;
        text-align: left;
    }
    
    .phone-input-group {
        gap: 8px;
    }
    
    .country-code {
        display: none; /* Hidden as requested */
    }
    
    .logo-container {
        margin-bottom: 24px;
        margin-top: 0;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .submit-btn {
        margin-top: 24px;
        padding: 16px;
    }
}

/* Illustration Section - Right Side */
.auth-illustration-section {
    flex: 1;
    max-width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .auth-illustration-section {
        display: none;
    }
}

.illustration-content {
    text-align: center;
    padding: 40px;
}

.illustration-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: #101828;
    margin-bottom: 16px;
    line-height: 1.2;
}

.illustration-text p {
    font-size: 18px;
    color: #667085;
    line-height: 1.6;
    margin: 0;
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
}
