/* ==========================================
   LOGIN.PHP - PAGE SPECIFIC STYLES
   Login page design
   ========================================== */

body {
    margin: 0;
    height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(1000px 500px at 20% -10%, rgba(79, 70, 229, .25), transparent 60%),
        radial-gradient(1000px 500px at 120% 10%, rgba(59, 130, 246, .25), transparent 60%),
        linear-gradient(180deg, var(--bg-800), var(--bg-900));
}

/* ========== LAYOUT ========== */
.glow {
    position: fixed;
    inset: auto -15% -35% -15%;
    height: 55vh;
    filter: blur(80px);
    background: conic-gradient(from 180deg at 50% 50%, rgba(79, 70, 229, .65), rgba(59, 130, 246, .65), rgba(79, 70, 229, .65));
    opacity: .35;
    animation: swirl 24s linear infinite;
}

.auth-wrap {
    width: min(92vw, 420px);
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease;
}

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

/* ========== BRAND ========== */
.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.3rem;
}

.brand .brand-dot {
    width: .8rem;
    height: .8rem;
    box-shadow: 0 0 12px rgba(79, 70, 229, .6);
}

/* ========== CARD ========== */
.card-glass {
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 24px;
    backdrop-filter: blur(14px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .4);
    padding: 2rem;
}

.card-glass h2 {
    font-size: 1.6rem;
}

/* ========== FORM ELEMENTS ========== */
.form-control {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #e5e7eb;
    padding-left: 2.4rem;
}

.form-control::placeholder {
    color: #ffffff;
    opacity: 1;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, .6);
    box-shadow: 0 0 0 .2rem rgba(59, 130, 246, .25);
    color: #fff;
}

/* ========== BUTTONS ========== */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: 0;
    border-radius: 14px;
    padding: .9rem;
    font-weight: 600;
    transition: all .3s ease;
    width: 100%;
}

.btn-gradient:hover {
    box-shadow: 0 8px 20px rgba(79, 70, 229, .45);
    transform: translateY(-2px);
}

.btn-google {
    width: 100%;
    border-radius: 14px;
    font-weight: 600;
    background: #fff;
    color: #444;
    border: 1px solid #ddd;
    padding: .8rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    text-decoration: none;
    margin-top: 1rem;
    transition: all .2s ease;
}

.btn-google:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.btn-google img {
    width: 20px;
    height: 20px;
}

/* ========== LINKS ========== */
a.link-light-muted {
    color: #cbd5e1;
    text-decoration: none;
    transition: .2s;
}

a.link-light-muted:hover {
    color: #fff;
}

/* ========== RESPONSIVE - MOBILE ========== */
@media (max-width: 576px) {
    .auth-wrap {
        width: 100%;
        padding: 1rem;
    }

    .card-glass {
        padding: 1.5rem;
    }

    .glow {
        inset: auto -15% -40% -15%;
        height: 48vh;
        opacity: .28;
    }
}
