/* app-login-2.css */

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

:root {
    --primary: #0083c0;
    --primary-dark: #006da0;
    --error-bg: #fff5f5;
    --error-border: #f87171;
    --error-text: #b91c1c;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --border: #d1d5db;
    --border-focus: #0083c0;
    --input-bg: #f9fafb;
    --white: #ffffff;
    --font: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font);
    font-size: 16px;
    color: var(--text-main);
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Page Layout ───────────────────────────────────────────── */

.page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 48px 24px 36px;
}

/* ── Logo ──────────────────────────────────────────────────── */

.logo-area {
    margin-bottom: 36px;
}

.logo-area img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
}

/* ── Form Card ─────────────────────────────────────────────── */

.form-card {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
}

.form-heading {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    line-height: 1.2;
    text-align: center;
}

.form-subheading {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 28px;
    text-align: center;
}

/* ── Error Box ─────────────────────────────────────────────── */

.error-box {
    background-color: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.error-box__icon {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--error-border);
}

.error-box__icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.error-box__body {
    flex: 1;
}

.error-box__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--error-text);
    margin-bottom: 2px;
}

.error-box__message {
    font-size: 13.5px;
    color: var(--error-text);
    opacity: 0.85;
    line-height: 1.4;
}

/* ── Form Fields ───────────────────────────────────────────── */

.form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.field input {
    font-family: var(--font);
    font-size: 15px;
    color: var(--text-main);
    background-color: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    width: 100%;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field input::placeholder {
    color: var(--text-light);
}

.field input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(0, 131, 192, 0.12);
    background-color: var(--white);
}

.field input.input--error {
    border-color: var(--error-border);
    background-color: var(--error-bg);
}

.field input.input--error:focus {
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.field__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.link {
    font-size: 13.5px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.link:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

/* ── Login Button ──────────────────────────────────────────── */

.btn-login {
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    background-color: var(--primary);
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.15s, box-shadow 0.15s;
    margin-top: 4px;
    letter-spacing: 0.01em;
}

.btn-login:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 2px 8px rgba(0, 131, 192, 0.25);
}

.btn-login:active {
    background-color: #005c88;
}

/* ── Disclaimer ────────────────────────────────────────────── */

.disclaimer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
}

.disclaimer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.disclaimer a:hover {
    text-decoration: underline;
}

/* ── Responsive tweaks ─────────────────────────────────────── */

@media (max-width: 500px) {
    .page-wrapper {
        padding: 32px 20px 28px;
    }

    .form-heading {
        font-size: 22px;
    }
}
