@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 15px;
}

.auth-wrapper {
    width: 100%;
    max-width: 400px;
}

.auth-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(10, 49, 97, 0.1);
    position: relative;
    padding-bottom: 20px;
}

/* Dynamic Top Banner - (overflow: hidden yahan se hata diya hai) */
.auth-banner {
    height: 140px;
    background: linear-gradient(135deg, #0A3161, #1A60B3);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    position: relative;
}

/* --- LIVE ANIMATED GRAPHICS --- */
.banner-shapes {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    margin: 0; padding: 0;
    overflow: hidden; /* Yahan laga diya taaki sirf glass orbs hide hon */
    border-top-left-radius: 20px; 
    border-top-right-radius: 20px;
}

.banner-shapes li {
    position: absolute;
    display: block;
    list-style: none;
    background: rgba(255, 255, 255, 0.12);
    animation: animateShapes 12s linear infinite;
    bottom: -60px;
    border-radius: 50%;
}

.banner-shapes li:nth-child(1) { left: 10%; width: 45px; height: 45px; animation-delay: 0s; }
.banner-shapes li:nth-child(2) { left: 25%; width: 25px; height: 25px; animation-delay: 2s; animation-duration: 9s; }
.banner-shapes li:nth-child(3) { left: 50%; width: 60px; height: 60px; animation-delay: 4s; }
.banner-shapes li:nth-child(4) { left: 70%; width: 20px; height: 20px; animation-delay: 0s; animation-duration: 15s; }
.banner-shapes li:nth-child(5) { left: 85%; width: 35px; height: 35px; animation-delay: 3s; }
.banner-shapes li:nth-child(6) { left: 40%; width: 15px; height: 15px; animation-delay: 6s; animation-duration: 10s; }

@keyframes animateShapes {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-250px) scale(1.5); opacity: 0; }
}

/* Perfect Round Auto-Adjusting Logo */
.logo-container {
    width: 90px;
    height: 90px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border: 4px solid #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 5;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.auth-header-text {
    text-align: center;
    margin-top: 55px; 
    padding: 0 20px;
}

.auth-header-text h2 {
    color: #1a202c;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.auth-header-text p {
    color: #718096;
    font-size: 14px;
}

.auth-body {
    padding: 25px 25px 10px;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
    margin-left: 2px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: #f7fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 15px;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: #0A3161;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(10, 49, 97, 0.08);
}

.input-icon {
    color: #a0aec0;
    margin-right: 12px;
    font-size: 16px;
    transition: 0.3s;
}

.input-wrapper:focus-within .input-icon {
    color: #0A3161;
}

.input-wrapper input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 14px 0;
    font-size: 15px;
    color: #2d3748;
    outline: none;
}

.input-wrapper input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.prefix {
    color: #2d3748;
    font-weight: 600;
    font-size: 15px;
    border-right: 1.5px solid #e2e8f0;
    padding-right: 12px;
    margin-right: 12px;
}

.eye-btn {
    color: #a0aec0;
    cursor: pointer;
    padding: 5px;
    transition: 0.2s;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #0A3161, #15529b);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 15px rgba(10, 49, 97, 0.25);
    margin-top: 15px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 49, 97, 0.35);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.auth-footer a {
    color: #0A3161;
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
}

/* Modern Top Alert */
.top-alert {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 380px;
    padding: 16px 20px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: top 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.top-alert.show { top: 20px; }
.alert-success { background: #10b981; }
.alert-error { background: #ef4444; }