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

html {
    font-size: 14px;
}

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

/* ==========================
   PREMIUM DARK NAVY BACKGROUND
========================== */
body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: radial-gradient(circle at center, #111b3d 0%, #0a1128 50%, #02040a 100%);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    color: #ffffff;
}

/* Luxury Gold Glow Effects */
body::before {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    top: -200px;
    left: -200px;
    background: #d4af37;
    border-radius: 50%;
    filter: blur(200px);
    opacity: 0.15;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    bottom: -150px;
    right: -150px;
    background: #ffd700;
    border-radius: 50%;
    filter: blur(180px);
    opacity: 0.10;
    z-index: 0;
}

/* ==========================
   LOGIN CARD (PREMIUM METALLIC/GLASS)
========================== */
.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 50px 40px;
    
    background: rgba(10, 17, 40, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    /* Subtle Gold Border */
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 24px;
    
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 215, 0, 0.1);
    text-align: center;
    
    animation: slideUpFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Top Gold Accent Line */
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    border-radius: 20px;
}

/* ==========================
   LOGO & HEADINGS
========================== */
.logo-container {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%; /* Circle looks more premium */
    padding: 15px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.logo-container img {
    width: 100%;
    height: auto;
}

h2 {
    font-size: 26px;
    font-weight: 600;
    color: #ffd700;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 13px;
    color: #8c9ead;
    margin-bottom: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.badge {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================
   ERROR BOX
========================== */
.error-box {
    background: rgba(220, 38, 38, 0.1);
    color: #ef4444;
    border: 1px solid rgba(220, 38, 38, 0.3);
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ==========================
   INPUT FIELDS
========================== */
.input-group {
    margin-bottom: 22px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #8c9ead;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    stroke: #8c9ead;
    transition: 0.3s;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.input-group input:focus {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.02);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.input-group input:focus + .input-icon,
.input-group input:not(:placeholder-shown) ~ .input-icon {
    stroke: #ffd700;
}

/* ==========================
   BUTTON
========================== */
.login-btn {
    width: 100%;
    padding: 16px;
    margin-top: 10px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffd700, #d4af37);
    color: #0a1128;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.login-btn svg {
    width: 18px;
    height: 18px;
    transition: 0.3s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, #ffe033, #d4af37);
}

.login-btn:hover svg {
    transform: translateX(4px);
}

/* ==========================
   FOOTERS
========================== */
.security-footer {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #8c9ead;
    font-size: 11px;
    font-weight: 500;
}

.security-footer svg {
    width: 14px;
    height: 14px;
    stroke: #10b981; /* Green lock icon */
}

.footer {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

/* ==========================
   MOBILE RESPONSIVE
========================== */
@media(max-width:480px){
    .login-card {
        padding: 40px 25px;
        border-radius: 20px;
    }
    h2 {
        font-size: 22px;
    }
    .logo-container {
        width: 75px;
        height: 75px;
    }
}