:root{
    --bg1: #f4f7ff;
    --bg2: #eef2ff;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --shadow: 0 25px 60px rgba(15, 23, 42, .18);
    --radius: 18px;
    --btn: #0b1220;
}

*{ box-sizing: border-box; }
html, body { height: 100%; }
body{
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
}

.page{
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
            radial-gradient(1000px 700px at 20% 10%, var(--bg1), transparent 60%),
            radial-gradient(900px 600px at 80% 90%, var(--bg2), transparent 55%),
            #f8fafc;
}

.card{
    width: 100%;
    max-width: 420px;
    background: var(--card);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 34px 34px 26px;
    border: 1px solid rgba(226,232,240,.8);
}

.brand{
    text-align: center;
    margin-bottom: 18px;
}

.logo-badge{
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(15,23,42,.08);
    color: #0ea5e9;
    font-weight: 800;
}

.brand-title{
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
}

.brand-sub{
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
}

.btn{
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .06s ease, box-shadow .18s ease, background .18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.btn:active{ transform: translateY(1px); }

.btn-google{
    box-shadow: 0 8px 20px rgba(15,23,42,.08);
}

.google-icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.divider{
    margin: 18px 0 16px;
    position: relative;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

.divider:before,
.divider:after{
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--line);
}

.divider:before{ left: 0; }
.divider:after{ right: 0; }

.divider span{
    background: var(--card);
    padding: 0 10px;
}

.form{
    display: grid;
    gap: 12px;
}

.field{
    display: grid;
    gap: 6px;
}

.label{
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.input-wrap{
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 12px;
    background: #fff;
}

.icon{
    width: 22px;
    text-align: center;
    color: #94a3b8;
}

input{
    border: 0;
    outline: 0;
    width: 100%;
    font-size: 14px;
    color: var(--text);
    background: transparent;
}

.btn-primary{
    margin-top: 8px;
    border: 0;
    background: linear-gradient(180deg, #0b1220, #070b14);
    color: #fff;
    padding: 13px 14px;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(2,6,23,.25);
}

.footer-links{
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    flex-wrap: wrap;
}

.link{
    color: #334155;
    text-decoration: none;
    font-weight: 600;
}
.link:hover{ text-decoration: underline; }

.muted{ color: var(--muted); }


.loading-dim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-box {
    background: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
}

.loading-box img {
    width: 120px;
    margin-bottom: 15px;
}

.loading-box p {
    font-size: 14px;
    color: #063A74;
    font-weight: 500;
}
