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

:root {
    --blue: #1D4ED8;
    --blue-dark: #1e3a8a;
    --blue-soft: #DBEAFE;
    --text: #111827;
    --sub: #6B7280;
    --border: #E5E7EB;
    --bg: #F0F4FF;
    --card: #ffffff;
    --danger: #EF4444;
}

html,
body {
    height: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100dvh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
}

/* ===== BACKGROUND DECORATION ===== */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.bg-blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(29, 78, 216, 0.12);
    top: -120px;
    right: -100px;
}

.bg-blob-2 {
    width: 300px;
    height: 300px;
    background: rgba(99, 102, 241, 0.08);
    bottom: -80px;
    left: -80px;
}

/* ===== WRAPPER ===== */
.login-wrapper {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

/* ===== BRAND HEADER ===== */
.brand {
    text-align: center;
    margin-bottom: 32px;
}

.brand-logo {
    width: 68px;
    height: 68px;
    background: linear-gradient(145deg, var(--blue-dark), var(--blue));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 12px 32px rgba(29, 78, 216, 0.3), 0 0 0 1px rgba(29, 78, 216, 0.1);
}

.brand-logo svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.brand-sub {
    font-size: 13.5px;
    color: var(--sub);
    line-height: 1.5;
}

/* ===== CARD ===== */
.card {
    background: var(--card);
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* ===== ERROR ALERT ===== */
.alert-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 12.5px;
    color: var(--danger);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.alert-error svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 7px;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sub);
    pointer-events: none;
    display: flex;
}

.input-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.form-input {
    width: 100%;
    height: 50px;
    border: 1.5px solid var(--border);
    border-radius: 13px;
    background: #FAFAFA;
    padding: 0 14px 0 42px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    border-color: var(--blue);
    background: var(--card);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.08);
}

.form-input::placeholder {
    color: #C4C9D4;
    font-weight: 400;
}

/* Password toggle */
.toggle-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--sub);
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.toggle-pass:hover {
    color: var(--text);
}

.toggle-pass svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

/* Forgot password */
.forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -8px;
    margin-bottom: 20px;
}

.forgot-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    transition: opacity 0.15s;
}

.forgot-link:hover {
    opacity: 0.75;
}

/* ===== PRIMARY BUTTON ===== */
.btn-login {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--blue-dark), var(--blue));
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.15s, transform 0.15s;
    box-shadow: 0 4px 16px rgba(29, 78, 216, 0.35);
    margin-bottom: 14px;
}

.btn-login:active {
    opacity: 0.88;
    transform: scale(0.98);
}

.btn-login svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
}

/* ===== DIVIDER ===== */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider-text {
    font-size: 11.5px;
    color: var(--sub);
    font-weight: 600;
    white-space: nowrap;
}

/* ===== GOOGLE BUTTON ===== */
.btn-google {
    width: 100%;
    height: 50px;
    border: 1.5px solid var(--border);
    border-radius: 13px;
    background: var(--card);
    color: var(--text);
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.btn-google:hover {
    background: #FAFAFA;
    border-color: #D0D5DD;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.09);
}

.btn-google:active {
    transform: scale(0.98);
}

/* Google icon SVG */
.google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ===== FOOTER ===== */
.login-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--sub);
    line-height: 1.6;
}

.login-footer a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}