/* ==========================================================
   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;
    perspective: 1200px;
}

/*==============================
3D BACKGROUND ENGINE
==============================*/

.background{
    position:fixed;
    inset:0;
    overflow:hidden;
    background: radial-gradient(circle at 50% 50%, #111a36 0%, #070b19 100%);
    z-index: 1;
}

/* Realistic 3D Spheres with Light/Shadow Specularity */
.circle{
    position:absolute;
    border-radius:50%;
    animation:float 16s infinite ease-in-out;
    z-index: 2;
}

.one{
    width:350px;
    height:350px;
    background: radial-gradient(circle at 35% 35%, #4cc9f0 0%, #0f52ba 70%, #031c4b 100%);
    top:-80px;
    left:-80px;
    box-shadow: 
        inset -20px -20px 50px rgba(0,0,0,0.8),
        0 25px 50px rgba(15, 82, 186, 0.4);
}

.two{
    width:280px;
    height:280px;
    background: radial-gradient(circle at 35% 35%, #833ab4 0%, #fd1d1d 60%, #5b0000 100%);
    bottom:-60px;
    right:-60px;
    animation-delay:4s;
    box-shadow: 
        inset -15px -15px 40px rgba(0,0,0,0.8),
        0 25px 50px rgba(253, 29, 29, 0.3);
}

.three{
    width:150px;
    height:150px;
    background: radial-gradient(circle at 35% 35%, #ffb703 0%, #fb8500 70%, #4a1c00 100%);
    top:30%;
    left:65%;
    animation-delay:8s;
    box-shadow: 
        inset -10px -10px 30px rgba(0,0,0,0.8),
        0 20px 40px rgba(251, 133, 0, 0.35);
}

/* Floating Animation with 3D Depth shifting */
@keyframes float{
    0%{
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    50%{
        transform: translateY(-30px) rotate(180deg) scale(1.05);
    }
    100%{
        transform: translateY(0px) rotate(360deg) scale(1);
    }
}

/*==============================
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 {
    perspective: 1200px;
    transform-style: preserve-3d;
}

.login-card{
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    
    /* 3D 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;
    
    /* Layered 3D drop shadow + internal glow */
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 15px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255,255,255,0.1);
        
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    will-change: transform;
}

.login-card:hover {
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 20px 35px rgba(76, 201, 240, 0.15),
        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);
    transform: translateZ(40px);
    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);
    transform: translateZ(30px);
    margin-bottom: 5px;
}

.login-card p {
    color: #a5b4fc;
    font-size: 14px;
    transform: translateZ(25px);
}

/*==============================
3D SLOTS (INPUTS)
==============================*/

.form-label {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    transform: translateZ(20px);
}

.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;
    transform: translateZ(25px);
}

.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);
    transform: translateZ(30px);
}

.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;
}

.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);
        
    transform: translateZ(35px);
    transition: all 0.1s ease;
}

.login-btn:hover {
    background: linear-gradient(135deg, #4f6cf7 0%, #4c94ff 100%);
    transform: translateZ(40px) translateY(-1px);
    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: translateZ(30px) translateY(3px);
    box-shadow: 
        0 3px 10px rgba(58, 134, 255, 0.2);
}

/*==============================
HELPERS & LINKS
==============================*/

.form-check {
    transform: translateZ(20px);
}

.form-check-label {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
}

.form-check-input {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
}

.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;
    transform: translateZ(20px);
}

.forgot-link:hover {
    color: #38bdf8;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.alert {
    border-radius: 14px;
    transform: translateZ(30px);
    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;
    transform: translateZ(15px);
    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;
    }
}
