/* ==========================================================
   AARUNI HOSPITAL ADMIN LOGIN - 3D THEME
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#070b19;
    overflow:hidden;
    min-height:100vh;
}

/*==============================
3D BACKGROUND ENGINE
==============================*/

.background-radial {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #111a36 0%, #070b19 100%);
    z-index: 0;
    pointer-events: none;
}

/* Realistic 3D Spheres with Light/Shadow Specularity */
.circle {
    position: fixed;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, z-index;
}

.one {
    width: 320px;
    height: 320px;
    margin-top: -160px;
    margin-left: -160px;
    background: radial-gradient(circle at 35% 35%, #4cc9f0 0%, #0f52ba 70%, #031c4b 100%);
    box-shadow: 
        inset -20px -20px 50px rgba(0,0,0,0.8),
        0 25px 50px rgba(15, 82, 186, 0.4);
    animation: orbit-one 24s infinite linear;
}

.two {
    width: 240px;
    height: 240px;
    margin-top: -120px;
    margin-left: -120px;
    background: radial-gradient(circle at 35% 35%, #833ab4 0%, #fd1d1d 60%, #5b0000 100%);
    box-shadow: 
        inset -15px -15px 40px rgba(0,0,0,0.8),
        0 25px 50px rgba(253, 29, 29, 0.3);
    animation: orbit-two 18s infinite linear;
}

.three {
    width: 140px;
    height: 140px;
    margin-top: -70px;
    margin-left: -70px;
    background: radial-gradient(circle at 35% 35%, #ffb703 0%, #fb8500 70%, #4a1c00 100%);
    box-shadow: 
        inset -10px -10px 30px rgba(0,0,0,0.8),
        0 20px 40px rgba(251, 133, 0, 0.35);
    animation: orbit-three 12s infinite linear;
}

/* 3D Orbiting animations around center card */
@keyframes orbit-one {
    0% {
        transform: translate(-38vw, 0vh) scale(0.85);
        z-index: 1;
    }
    12.5% {
        transform: translate(-19vw, 8vh) scale(1.05);
        z-index: 25;
    }
    25% {
        transform: translate(0vw, 12vh) scale(1.2);
        z-index: 25;
    }
    37.5% {
        transform: translate(19vw, 8vh) scale(1.05);
        z-index: 25;
    }
    50% {
        transform: translate(38vw, 0vh) scale(0.85);
        z-index: 1;
    }
    62.5% {
        transform: translate(19vw, -8vh) scale(0.65);
        z-index: 1;
    }
    75% {
        transform: translate(0vw, -12vh) scale(0.5);
        z-index: 1;
    }
    87.5% {
        transform: translate(-19vw, -8vh) scale(0.65);
        z-index: 1;
    }
    100% {
        transform: translate(-38vw, 0vh) scale(0.85);
        z-index: 1;
    }
}

@keyframes orbit-two {
    0% {
        transform: translate(25vw, -25vh) scale(0.85);
        z-index: 1;
    }
    12.5% {
        transform: translate(10vw, -10vh) scale(0.7);
        z-index: 1;
    }
    25% {
        transform: translate(-5vw, 5vh) scale(0.55);
        z-index: 1;
    }
    37.5% {
        transform: translate(-20vw, 20vh) scale(0.7);
        z-index: 1;
    }
    50% {
        transform: translate(-25vw, 25vh) scale(0.85);
        z-index: 25;
    }
    62.5% {
        transform: translate(-10vw, 10vh) scale(1.05);
        z-index: 25;
    }
    75% {
        transform: translate(5vw, -5vh) scale(1.15);
        z-index: 25;
    }
    87.5% {
        transform: translate(20vw, -20vh) scale(1.05);
        z-index: 25;
    }
    100% {
        transform: translate(25vw, -25vh) scale(0.85);
        z-index: 1;
    }
}

@keyframes orbit-three {
    0% {
        transform: translate(-22vw, -22vh) scale(0.7);
        z-index: 25;
    }
    12.5% {
        transform: translate(-11vw, -11vh) scale(0.85);
        z-index: 25;
    }
    25% {
        transform: translate(0vw, 0vh) scale(1.0);
        z-index: 25;
    }
    37.5% {
        transform: translate(11vw, 11vh) scale(0.85);
        z-index: 25;
    }
    50% {
        transform: translate(22vw, 22vh) scale(0.7);
        z-index: 1;
    }
    62.5% {
        transform: translate(11vw, 11vh) scale(0.55);
        z-index: 1;
    }
    75% {
        transform: translate(0vw, 0vh) scale(0.45);
        z-index: 1;
    }
    87.5% {
        transform: translate(-11vw, -11vh) scale(0.55);
        z-index: 1;
    }
    100% {
        transform: translate(-22vw, -22vh) scale(0.7);
        z-index: 25;
    }
}

/*==============================
3D GLASS CARD & LAYERING
==============================*/

.container {
    position: relative;
    z-index: 10;
}

/* Parent of card to hold perspective */
.col-xl-4, .col-lg-5, .col-md-7 {
    position: relative;
    z-index: 20;
}

.login-card{
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    
    /* Elegant Highlight edges */
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    
    border-radius: 30px;
    padding: 45px;
    
    /* Elegant soft shadow + glow */
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255,255,255,0.1);
        
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: auto !important;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 15px 30px rgba(76, 201, 240, 0.25),
        inset 0 1px 2px rgba(255,255,255,0.2);
}

/* 3D Translation on elements to float them */
.login-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    padding: 12px;
    border: 3px solid #4cc9f0;
    box-shadow: 
        0 10px 25px rgba(76, 201, 240, 0.4),
        inset 0 3px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.login-card h3 {
    color: #ffffff;
    font-weight: 700;
    font-size: 28px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin-bottom: 5px;
}

.login-card p {
    color: #a5b4fc;
    font-size: 14px;
}

/*==============================
3D SLOTS (INPUTS)
==============================*/

.form-label {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.input-group {
    border-radius: 14px;
    overflow: hidden;
    /* Recessed slot depth */
    box-shadow: 
        inset 3px 3px 10px rgba(0, 0, 0, 0.4),
        inset -1px -1px 3px rgba(255, 255, 255, 0.05);
    background: rgba(10, 15, 30, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
    pointer-events: auto !important;
}

.input-group:focus-within {
    border-color: #4cc9f0;
    box-shadow: 
        0 0 15px rgba(76, 201, 240, 0.25),
        inset 3px 3px 10px rgba(0, 0, 0, 0.4);
}

.input-group-text {
    background: transparent !important;
    border: none !important;
    color: #4cc9f0 !important;
    padding-left: 18px;
    font-size: 16px;
}

.form-control {
    background: transparent !important;
    border: none !important;
    height: 54px;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    z-index: 6;
    pointer-events: auto !important;
    cursor: text !important;
}

.form-control::placeholder {
    color: #64748b;
}

.form-control:focus {
    box-shadow: none !important;
}

/* Eye button toggle inside group */
#togglePassword {
    background: transparent !important;
    border: none !important;
    color: #64748b !important;
    transition: color 0.2s ease;
}

#togglePassword:hover {
    color: #4cc9f0 !important;
}

/*==============================
3D BUTTON ENGINE (TACTILE)
==============================*/

.login-btn {
    height: 56px;
    background: linear-gradient(135deg, #4361ee 0%, #3a86ff 100%);
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    position: relative;
    
    /* Tactile bottom border depth */
    border-bottom: 4px solid #1a36b3;
    box-shadow: 
        0 8px 20px rgba(58, 134, 255, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
        
    transition: all 0.1s ease;
}

.login-btn:hover {
    background: linear-gradient(135deg, #4f6cf7 0%, #4c94ff 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 10px 25px rgba(58, 134, 255, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.login-btn:active {
    border-bottom-width: 1px;
    transform: translateY(1px);
    box-shadow: 
        0 3px 10px rgba(58, 134, 255, 0.2);
}

/*==============================
HELPERS & LINKS
==============================*/

.form-check {
    position: relative;
    z-index: 6;
    pointer-events: auto !important;
}

.form-check-label {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.form-check-input {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer !important;
    pointer-events: auto !important;
}

.form-check-input:checked {
    background-color: #4cc9f0;
    border-color: #4cc9f0;
}

.forgot-link {
    color: #4cc9f0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #38bdf8;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.alert {
    border-radius: 14px;
    border: none;
    font-weight: 500;
    font-size: 14px;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-left: 4px solid #ef4444;
}

.alert-success {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border-left: 4px solid #22c55e;
}

small {
    color: #94a3b8;
    font-size: 12px;
    display: block;
    letter-spacing: 0.5px;
}

/*==============================
RESPONSIVE DESIGN
==============================*/

@media(max-width:768px){
    .login-card{
        padding:35px 25px;
        border-radius: 24px;
    }
    
    .login-logo{
        width:80px;
        height:80px;
    }
    
    .login-card h3{
        font-size:24px;
    }
}
