@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Tamil:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    /* Subtle dark medical gradient - calming deep blue-teal to near-black */
    background: radial-gradient(circle at 30% 20%, #1a5444 0%, #0a141f 70%);
    font-family: poppins, sans-serif;
    color: #d1dce8; /* Soft light blue-gray text */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.bubbles span {
    position: absolute;
    bottom: -120px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), rgba(0,180,255,0.08));
    border-radius: 50%;
    backdrop-filter: blur(4px);
    animation: animate 20s linear infinite;
    animation-duration: calc(120s / var(--i));
    left: calc(var(--i) * 4%);
    opacity: 0.6;
}

/* Different sizes for more realism */
.bubbles span:nth-child(3n) {
    width: 60px;
    height: 60px;
}

.bubbles span:nth-child(5n) {
    width: 25px;
    height: 25px;
}

/* Floating animation */
@keyframes animate {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-110vh) scale(1.2);
        opacity: 0;
    }
}

/* Optional subtle grid/pattern for clinical feel (very faint) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M10 10 H90 V90 H10 Z" fill="none" stroke="%231a2b3f" stroke-width="0.4" opacity="0.12"/></svg>') repeat;
    pointer-events: none;
    z-index: -1;
}

.admin-wrapper {
    width: 100%;
    padding: 20px;
}

.login-container {
    display: flex;
    justify-content: center;
}

.login-card {
    width: 420px;
    background: rgba(15, 25, 40, 0.363); /* Semi-transparent dark teal-gray */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(45, 212, 191, 0.14); /* Subtle teal border */
    border-radius: 16px;
    padding: 50px 45px 40px;
    box-shadow:
        0 20px 50px rgba(0,0,0,0.55),
        inset 0 0 30px rgba(45,212,191,0.03);
    position: relative;
    overflow: hidden;

    /* Gentle entrance animation */
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: fadeInUp 0.8s ease-out forwards 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Subtle teal glow edge (much softer than gold shine) */
.login-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(45deg, transparent, rgba(45,212,191,0.08), transparent);
    pointer-events: none;
    z-index: -1;
}

.login-header h2 {
    font-family: 'Inter', sans-serif; /* Cleaner sans-serif for medical pro feel (or keep Playfair if you like serif elegance) */
    font-size: 2.4rem;
    font-weight: 700;
    color: #2dd4bf;          /* Soft teal - modern medical accent */
    margin-bottom: 8px;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 6px rgba(45,212,191,0.15);
}

.subtitle {
    font-size: 1.05rem;
    color: #94a3b8;
    margin-bottom: 35px;
}

.floating-input {
    position: relative;
    margin-bottom: 28px;
}

.floating-input input {
    width: 100%;
    padding: 14px 16px 14px 18px;
    background: rgba(20, 35, 55, 0.65);
    border: 1px solid rgba(45,212,191,0.18);
    border-radius: 10px;
    color: #e2efff;
    font-size: 1.03rem;
    transition: all 0.3s ease;
}

.floating-input input:focus {
    outline: none;
    border-color: #2dd4bf;
    box-shadow: 0 0 0 3px rgba(45,212,191,0.12);
    background: rgba(30, 45, 65, 0.75);
}

.floating-input label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.floating-input input:focus + label,
.floating-input input:not(:placeholder-shown) + label {
    top: -10px;
    left: 14px;
    font-size: 0.82rem;
    color: #2dd4bf;
    background: rgba(15,25,40,0.92);
    padding: 0 8px;
}

.password-field {
    position: relative;
}

.eye-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.3rem;
    transition: color 0.3s;
}

.eye-toggle:hover {
    color: #2dd4bf;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #2dd4bf, #14b8a6, #2dd4bf);
    color: #0f172a;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(45,212,191,0.22);
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(45,212,191,0.35);
    background: linear-gradient(90deg, #5eead4, #2dd4bf, #5eead4);
}

.forgot-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: #2dd4bf;
}

.footer {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 40px !important;
}

/* Alert styling - softer danger for medical context */
.alert-danger {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fecaca;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 25px;
}
