:root {
    --brand-teal: #215c5c;
    --brand-teal-dark: #163e3e;
    --brand-gold: #d4af37;
    --brand-gold-light: rgba(212, 175, 55, 0.1);
    --soft-bg: #f8fafc;
}

body {
    background-color: var(--soft-bg);
    font-family: 'Inter', sans-serif;
}

.login-section {
    min-height: 100vh;
    display: flex;
    /* align-items: center;  <-- REMOVE OR COMMENT THIS OUT */
    justify-content: center;
    
    /* ADD THESE LINES */
    align-items: flex-start; /* Start from the top instead of the middle */
    padding-top: 120px;      /* This creates the gap needed for the header */
    padding-bottom: 50px;
    
    /* Keep your existing background styles */
    background-image: radial-gradient(var(--brand-teal) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
}

.login-card {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 440px;
    /* The Gold Accent Border */
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

/* Top gold bar for a premium feel */
.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-teal), var(--brand-gold));
}

.login-header {
    padding: 3.5rem 2.5rem 1.5rem;
    text-align: center;
}

.login-body {
    padding: 0 2.5rem 3.5rem;
}

.form-control {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0;
    transition: all 0.2s ease;
}

/* Gold focus state */
.form-control:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 4px var(--brand-gold-light);
}

.btn-theme {
    background: var(--brand-teal);
    color: white;
    padding: 0.85rem;
    border-radius: 0.75rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-theme:hover {
    background: var(--brand-teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(33, 92, 92, 0.2);
}

.otp-request-link {
    color: var(--brand-gold);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.8rem;
}

.otp-request-link:hover {
    color: var(--brand-teal);
}

.theme-link {
    color: var(--brand-teal);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.theme-link:hover {
    color: var(--brand-gold);
    text-decoration: underline;
}

.bi-gold {
    color: var(--brand-gold);
}

.animate-fade {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.signup-image {
    /* Existing background with updated height and centering */
    background: linear-gradient(rgba(216, 235, 235, 0.9), rgba(33, 92, 92, 0.9)), 
                url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?q=80&w=1000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    height: 100%;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: white;
}

/* --- OTP MODAL STYLING --- */
.otp-field {
    width: 50px !important;
    height: 60px !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    border: 2px solid #e2e8f0 !important;
    color: var(--brand-teal) !important;
    background-color: #f8fafc !important;
    transition: all 0.2s ease;
    padding: 0 !important;
    text-align: center;
}

/* Gold Focus Effect */
.otp-field:focus {
    background-color: #ffffff !important;
    border-color: var(--brand-gold) !important;
    box-shadow: 0 0 0 4px var(--brand-gold-light) !important;
    outline: none;
}

/* Mobile Responsiveness for OTP */
@media (max-width: 400px) {
    .otp-field {
        width: 40px !important;
        height: 50px !important;
        font-size: 1.25rem !important;
    }
}

/* --- PREMIUM SIGNUP CONTAINER --- */
.signup-container {
    overflow: hidden;
    border-radius: 2rem; /* Smooth rounded corners */
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.2); /* Subtle Gold Border */
}

.signup-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-teal), var(--brand-gold));
}

.brand-content {
    text-align: center;
}

/* Enhancing existing Notched Outline for the Card */
.notched-outline .premium-input {
    border: 1.5px solid #e2e8f0 !important;
    background-color: #fcfcfc !important;
    height: 60px !important;
}

.notched-outline .premium-input:focus {
    border-color: var(--brand-gold) !important;
    background-color: #fff !important;
}

/* Custom Checkbox Color */
.form-check-input:checked {
    background-color: var(--brand-teal);
    border-color: var(--brand-teal);
}

/* Layout adjustments for Mobile */
@media (max-width: 768px) {
    .signup-container {
        border-radius: 1.5rem;
    }
    .signup-image {
        min-height: auto;
        padding: 2rem;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.3s ease-in-out 0s 2;
}

#otpError {
    transition: all 0.3s ease;
}

.fw-extrabold {
    font-weight: 800 !important;
}

.tracking-wider {
    letter-spacing: 0.1em;
}

/* Step Card Enhancements */
.step-card {
    background: #ffffff;
    border: 1px solid rgba(33, 92, 92, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(33, 92, 92, 0.1) !important;
    border-color: var(--brand-gold);
}

/* Icon Box with Gradient */
.icon-box-premium {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;        justify-content: center;
    background: linear-gradient(135deg, var(--brand-teal) 0%, #144B4B 100%);
    color: #ffffff;
    border-radius: 16px;
    font-size: 1.5rem;
    box-shadow: 0 8px 15px rgba(33, 92, 92, 0.2);
}

/* Professional Sidebar Styling */
.contact-sidebar {
    background: var(--brand-teal);
    color: #ffffff;
    border-radius: 2rem;
}
.contact-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1rem;
    transition: background 0.3s;
}
.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
}
