:root {
    --blue: #0f6fde;
    --blue-dark: #0759c8;
    --text: #0d2244;
    --muted: #64748b;
    --border: #cfd8e3;
    --shadow: 0 18px 55px rgba(20, 58, 105, .15);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    color: var(--text);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    background:
      radial-gradient(circle at 10% 20%, rgba(255, 231, 223, .75), transparent 33%),
      radial-gradient(circle at 82% 20%, rgba(207, 237, 255, .9), transparent 37%),
      radial-gradient(circle at 20% 85%, rgba(212, 234, 255, .8), transparent 34%),
      radial-gradient(circle at 88% 86%, rgba(255, 231, 223, .55), transparent 30%),
      #f8fbff;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.page-shell {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 18px;
    padding: 48px 20px 24px;
}

.login-card, .login-options {
    width: min(100%, 520px);
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: var(--shadow);
}

.login-card {
    padding: 46px 52px 48px;
    border-radius: 10px;
}
.brand { margin-bottom: 26px; }
.brand-logo { display: block; width: 240px; max-width: 78%; height: auto; }

h1 { margin: 0 0 10px; font-size: 38px; line-height: 1.1; letter-spacing: -.8px; }
.subtitle { margin: 0 0 28px; color: var(--muted); font-size: 18px; line-height: 1.5; }

label { display: block; margin: 20px 0 8px; font-weight: 600; font-size: 16px; }
input[type="email"], input[type="password"], input[type="text"] {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px 16px;
    font: inherit;
    font-size: 17px;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(15, 111, 222, .12); }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 52px; }
.eye-btn {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 20px;
    cursor: pointer;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 18px 0 26px;
    font-size: 15px;
}
.remember { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; }
.remember input { width: 18px; height: 18px; }

.primary-btn {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 6px;
    padding: 15px 20px;
    background: linear-gradient(180deg, #1478ea, #0868d7);
    color: #fff;
    font: inherit;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 111, 222, .18);
}
.primary-btn:hover { background: linear-gradient(180deg, #0f70df, #075fc8); text-decoration: none; }

.login-options {
    min-height: 78px;
    border-radius: 10px;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 46px 1fr 32px;
    align-items: center;
    color: var(--text);
    font: inherit;
    font-size: 17px;
    text-align: left;
    cursor: pointer;
}
.key-icon { font-size: 26px; color: #5d6e85; }
.chevron { justify-self: end; font-size: 31px; font-weight: 300; }

.alert {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 6px;
    background: #fff2f2;
    border: 1px solid #ffc9c9;
    color: #a32121;
    font-size: 14px;
}

footer {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 18px;
    color: #738198;
    font-size: 13px;
}
footer a { color: #66758d; }

.dashboard-body { display: grid; place-items: center; min-height: 100vh; padding: 30px; }
.dashboard-card {
    width: min(100%, 620px);
    background: #fff;
    border-radius: 12px;
    padding: 50px;
    box-shadow: var(--shadow);
    text-align: center;
}
.dashboard-logo { margin: 0 auto 24px; }
.inline-btn { width: auto; display: inline-block; margin-top: 18px; padding-inline: 30px; }

@media (max-width: 620px) {
    .page-shell { justify-content: flex-start; padding-top: 22px; }
    .login-card { padding: 34px 24px; }
    h1 { font-size: 32px; }
    .subtitle { font-size: 16px; }
    .form-row { align-items: flex-start; flex-direction: column; }
    .login-options { padding-inline: 22px; }
}
