:root {
    --primary-color: #077c8c;
    --primary-hover: #056674;
    --primary-light: rgba(7, 124, 140, 0.1);
    --bg-light: #f4f7fa;
    --text-dark: #2c3e50;
    --text-muted: #64748b;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    justify-content: center; /* Center Horizontal */
    align-items: center;     /* Center Vertical */
    margin: 0;
}

.login-wrapper {
    width: 100%;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- COMPACT CONTAINER --- */
.auth-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    
    width: 750px; 
    max-width: 100%;
    min-height: 400px; 
    
    display: flex;
    transition: transform 0.3s ease;
}

.auth-banner {
    flex: 0.9;
    background: linear-gradient(135deg, var(--primary-color) 0%, #065f6b 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px; /* Padding kam ki */
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Abstract Shapes */
.auth-banner::before, .auth-banner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}
.auth-banner::before { width: 200px; height: 200px; top: -40px; left: -40px; }
.auth-banner::after { width: 150px; height: 150px; bottom: -20px; right: -20px; }

.auth-banner img {
    width: auto;
    max-width: 110px; 
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.auth-banner h2 {
    font-size: 1.4rem; /* Font size adjust */
    font-weight: 700;
    z-index: 2;
}

/* --- FORM WRAPPER (Compact spacing) --- */
.auth-form-wrapper {
    flex: 1.1;
    padding: 30px 40px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

h3 { font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; font-size: 1.5rem; }

/* --- INPUTS --- */
.unified-input-group {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 6px 12px; 
    transition: all 0.3s ease;
    margin-bottom: 15px; 
}

.unified-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.unified-input-group .input-group-text {
    background: transparent;
    border: none;
    padding: 0;
    margin-right: 10px;
    color: var(--primary-color);
    font-weight: 600;
}

.unified-input-group .form-control {
    border: none;
    background: transparent;
    padding: 5px 0;
    box-shadow: none !important;
    font-size: 0.95rem;
}

/* --- ERROR MESSAGE STYLE (New) --- */
.error-text {
    color: #dc3545;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: -10px;
    margin-bottom: 15px;
    display: block;
    min-height: 20px; 
}

.btn-primary-custom {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}
.btn-primary-custom:hover {
    background-color: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(7, 124, 140, 0.25) !important;
}

.otp-inputs { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.otp-box {
    width: 45px; height: 45px;
    text-align: center; font-size: 1.3rem; font-weight: 700;
    color: var(--primary-color);
    border: 2px solid #e2e8f0; border-radius: 10px; background: #f8fafc;
}
.otp-box:focus {
    border-color: var(--primary-color) !important; background: #fff; outline: none;
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Animations */
.fade-in-up { animation: fadeInUp 0.4s ease-out forwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* --- MOBILE RESPONSIVE (Perfect Center) --- */
@media (max-width: 768px) {
    body {
        /* Mobile height fix */
        min-height: 100dvh; /* dynamic viewport height */
    }

    .auth-container {
        flex-direction: column;
        width: 100%;
        max-width: 400px; 
        min-height: auto;
        border-radius: 20px; 
    }

    .auth-banner {
        flex: none;
        padding: 20px;
        min-height: auto;
    }
    .auth-banner h2 { font-size: 1.2rem; margin: 0; }
    .auth-banner img { max-width: 90px; margin-bottom: 10px; }

    .auth-form-wrapper {
        padding: 25px 20px;
        flex: 1;
    }
}