:root {
    --primary-gold: #fbbf24;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: radial-gradient(ellipse at 30% 40%, #0f172a, #020617);
    position: relative;
    overflow: hidden;
    margin-top: -6rem; /* Adjust for navbar */
    padding-top: 6rem;
}

/* Animated Background Orbs - Responsive sizes */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: clamp(300px, 40vw, 600px);
    height: clamp(300px, 40vw, 600px);
    background: radial-gradient(circle, var(--primary-gold), transparent);
    top: -10%;
    left: -10%;
    animation: float 20s ease-in-out infinite;
}

.orb-2 {
    width: clamp(400px, 50vw, 800px);
    height: clamp(400px, 50vw, 800px);
    background: radial-gradient(circle, var(--secondary), transparent);
    bottom: -15%;
    right: -15%;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

/* Premium Login Card */
.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 2.5rem;
    width: 100%;
    max-width: 460px;
    padding: clamp(2rem, 5vw, 3.5rem);
    position: relative;
    z-index: 10;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
    animation: cardAppear 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Glowing Edge Effect */
.login-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 2.5rem;
    padding: 1px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary), transparent, transparent, var(--primary-gold));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Input Styling */
.login-field-group {
    margin-bottom: 1.5rem;
}

.login-field-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-subtle);
    margin-bottom: 0.6rem;
    margin-left: 0.25rem;
}

.input-wrapper {
    position: relative;
}

.input-field {
    width: 100%;
    background: rgba(2, 6, 23, 0.6);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.25rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: rgba(2, 6, 23, 0.8);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
}

.input-icon {
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #475569;
    transition: color 0.3s ease;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.input-field:focus + .input-icon,
.input-field:focus ~ .input-icon {
    color: var(--primary-gold);
}

/* Submit Button */
.btn-login {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-gold), #f59e0b);
    color: #0f172a;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    box-shadow: 0 10px 20px -5px rgba(251, 191, 36, 0.3);
    border: none;
    cursor: pointer;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(251, 191, 36, 0.4);
}

/* Secondary Links */
.links-divider {
    margin: 2rem 0 1.5rem;
    position: relative;
    text-align: center;
}

.links-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--glass-border);
}

.links-divider span {
    position: relative;
    background: #0f172a;
    padding: 0 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.secondary-link {
    display: block;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--text-subtle);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.secondary-link:hover { color: var(--primary-gold); }
.secondary-link strong { color: #fff; }

/* Alert Styling */
.alert-premium {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: #fca5a5;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
