:root {
    --alphv-blue: #1e3fe0;
    --alphv-blue-dark: #1530b3;
    --text-dark: #12172b;
    --text-muted: #6b7280;
    --border-color: #e2e6f0;
    --bg-page: #f6f8fd;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    background: var(--bg-page);
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* background decoration */
.bg-shape {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: #e8edfc;
    opacity: .7;
}
.bg-shape-top { top: -170px; right: -120px; }
.bg-shape-bottom { bottom: -200px; left: -150px; }

/* card */
.login-card {
    position: relative;
    z-index: 1;
    width: 440px;
    max-width: calc(100% - 32px);
    padding: 36px 36px 28px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(30, 63, 224, .08);
    text-align: center;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
}
.brand-logo { height: 52px; width: auto; display: block; }

h1 { margin: 0 0 6px; font-size: 26px; font-weight: 800; }
.subtitle { margin: 0 0 24px; color: var(--text-muted); font-size: 14.5px; }

form { text-align: left; }

label {
    display: block;
    margin: 14px 0 6px;
    font-size: 13.5px;
    font-weight: 600;
}

.field {
    position: relative;
    display: flex;
    align-items: center;
}
.field input {
    width: 100%;
    padding: 12px 42px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
    border-color: var(--alphv-blue);
    box-shadow: 0 0 0 3px rgba(30, 63, 224, .12);
}
.field-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    fill: #8a93a8;
    pointer-events: none;
}
.eye-btn {
    position: absolute;
    right: 8px;
    padding: 6px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
}
.eye-btn svg { width: 18px; height: 18px; fill: #8a93a8; }
.eye-btn:hover svg { fill: var(--alphv-blue); }

.error {
    min-height: 20px;
    margin: 12px 0 0;
    font-size: 13px;
    color: #d92d20;
}

.login-btn {
    width: 100%;
    margin-top: 6px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 10px;
    background: var(--alphv-blue);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.login-btn:hover { background: var(--alphv-blue-dark); }
.login-btn:disabled { opacity: .7; cursor: not-allowed; }

.card-footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}
.footer-title {
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 500;
    color: #4b5563;
}
.footer-title svg { width: 15px; height: 15px; fill: #6b7280; }
.footer-sub { margin: 0; font-size: 12.5px; color: var(--text-muted); }

.hint { margin: 10px 0 0; font-size: 13px; color: var(--text-muted); }

.link-btn {
    display: block;
    margin: 14px auto 0;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
}
.link-btn:hover { color: var(--alphv-blue); }