/* ================= RESET ================= */

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: #0f172a;
}


/* ================= THEME ================= */

:root {
    --primary-color: #4f46e5;
    --primary-hover: color-mix(in srgb, var(--primary-color) 85%, black);
    --primary-soft: color-mix(in srgb, var(--primary-color) 12%, white);
    --primary-border: color-mix(in srgb, var(--primary-color) 25%, white);
}


/* ================= BACKGROUND ================= */

body {
    background: radial-gradient( circle at top, var(--primary-soft) 0%, #f8fafc 45%, #f8fafc 100% );
}


/* ================= LAYOUT ================= */

.layout-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.layout-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ================= PRODUCT HEADER ================= */

.product-logo {
    max-width: 280px;
    padding-bottom: 40px;
    object-fit: contain;
}


/* ================= AUTH CARD ================= */

.auth-card {
    width: 100%;
    max-width: 360px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.auth-links {
    padding-top: 8px;
    text-align: center;
}


/* ================= FORM ================= */

h1 {
    font-size: 22px;
    margin-bottom: 24px;
}

label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #374151;
}

input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

    input:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px var(--primary-soft);
    }


/* ================= BUTTONS ================= */

button,
.btn-primary {
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

    button:hover,
    .btn-primary:hover {
        background: var(--primary-hover);
    }


/* ================= LINKS ================= */

a {
    color: var(--primary-color);
    text-decoration: none;
}

    a:hover {
        color: var(--primary-hover);
        text-decoration: underline;
    }

.links {
    margin-top: 16px;
    font-size: 13px;
    text-align: center;
}


/* ================= AUTH ERROR ================= */

.auth-error,
.field-validation-error {
    display: block;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 6px;
    background: #fdeaea;
    color: #b00020;
    font-size: 14px;
}

    .auth-error ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }


/* ================= FOOTER ================= */

.site-footer {
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    color: #6b7280;
}

.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer-links a {
    margin-left: 16px;
    color: #6b7280;
}

    .site-footer-links a:hover {
        text-decoration: underline;
    }
