/* Variables are defined in input.css :root */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login-page {
    background: var(--slate-50, #F8FAFC);
    min-height: 100vh;
    width: 100vw;
    font-family: 'Metropolis', sans-serif;
    color: var(--slate-900, #0F172A);
    overflow: hidden;
    position: relative;
}

/* Centering Container */
.login-wrapper {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Background Wrapper */
.bg-wrapper {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.bg-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Header Branding - Top Left */
.login-header {
    position: fixed;
    top: 2.5rem;
    left: 3rem;
    z-index: 20;
    display: flex;
    align-items: center;
}

.login-header a {
    display: flex;
    text-decoration: none;
}

.header-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
}

/* Login Card */
.login-card {
    background: white;
    width: 90%;
    max-width: 540px;
    padding: 5rem 3rem;
    border-radius: 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    isolation: isolate;
}

.card-logo {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin-bottom: 2rem;
}

/* Login color split by domain */
body.login-page .login-card::before {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    border-radius: 999px;
    top: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(24px);
    opacity: 0.22;
    z-index: -1;
}

body.login-page.user-login .login-card::before {
    background: linear-gradient(135deg, #2f6dff 0%, #8fb7ff 100%);
}

body.login-page.admin-login .login-card::before {
    background: linear-gradient(135deg, #ffe36a 0%, #f8b32f 100%);
    opacity: 0.28;
}

body.login-page.admin-login .card-logo {
    filter: sepia(0.9) saturate(1.45) hue-rotate(342deg) brightness(1.02);
}

.card-subtitle {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 3.5rem;
    font-weight: 400;
}

.btn-google {
    background-color: var(--umak-blue-bright, #316CFF);
    color: white;
    width: 100%;
    max-width: 340px;
    padding: 1.1rem 2rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 1.05rem;
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(49, 108, 255, 0.2);
}

.btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(49, 108, 255, 0.3);
    background-color: var(--umak-blue, #001035);
}

body.login-page.admin-login .btn-google {
    background: linear-gradient(135deg, #ffd94f 0%, #f6b738 100%);
    color: #1f2937;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

body.login-page.admin-login .btn-google:hover {
    background: linear-gradient(135deg, #ffe06c 0%, #f8b32c 100%);
    color: #111827;
    box-shadow: 0 14px 28px rgba(217, 119, 6, 0.34);
}

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

.login-subtext {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #A0AEC0;
}

/* Footer Disclaimer */
.login-footer {
    position: fixed;
    bottom: 2.5rem;
    width: 100%;
    z-index: 20;
    text-align: center;
    padding: 0 2rem;
}

.footer-disclaimer {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: #4A5568;
    line-height: 1.7;
    font-weight: 400;
}

.footer-disclaimer strong {
    color: #2D3748;
    font-weight: 600;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .login-header {
        top: 1.5rem;
        left: 1.5rem;
    }
    .header-logo { height: 48px; }
    
    .login-card {
        padding: 4rem 2rem;
        border-radius: 32px;
    }
    .card-logo { max-width: 260px; }
    
    .login-footer {
        position: relative;
        bottom: 0;
        margin-top: 3rem;
        margin-bottom: 2rem;
    }
    
    body.login-page {
        overflow-y: auto;
    }
    
    .login-wrapper {
        position: relative;
        padding-top: 6rem;
        padding-bottom: 2rem;
        min-height: 100vh;
    }
}
