/* ============================================================
   REKMATCH AUTH PAGES - auth.css
   Login & Register - matches site colour scheme and typography
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: 'Open Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background: rgb(239, 250, 255);
    display: flex;
    min-height: 100vh;
}

/* ── Two-column shell ──────────────────────────────────────────── */
.auth-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ── Form side ─────────────────────────────────────────────────── */
.auth-form-side {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 24px;
    background: rgb(239, 250, 255);
    overflow-y: auto;
}

.auth-form-box {
    width: 100%;
    max-width: 420px;
}

/* ── Logo ──────────────────────────────────────────────────────── */
.auth-logo {
    display: block;
    margin-bottom: 36px;
}

.auth-logo img {
    height: 32px;
    width: auto;
}

/* ── Heading block ─────────────────────────────────────────────── */
.auth-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #0d1b2e;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.auth-subheading {
    font-size: 14px;
    color: #718096;
    margin: 0 0 32px;
    line-height: 1.5;
}

/* ── Form ──────────────────────────────────────────────────────── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.auth-field label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #a0aec0;
}

.auth-field input {
    padding: 11px 14px;
    border: 1px solid #dde3ee;
    border-radius: 8px;
    font-size: 14px;
    color: #1a2332;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    font-family: 'Open Sans', sans-serif;
    width: 100%;
}

.auth-field input::placeholder { color: #c0cce0; }

.auth-field input:focus {
    border-color: #004AAD;
    box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.1);
}

.auth-field input[type="file"] {
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    background: #f8faff;
}

/* ── Submit button ─────────────────────────────────────────────── */
.auth-submit {
    width: 100%;
    padding: 13px;
    background: #004AAD;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    font-family: 'Open Sans', sans-serif;
    margin-top: 4px;
}

.auth-submit:hover {
    background: #003a8c;
    transform: translateY(-1px);
}

/* ── Alt link ──────────────────────────────────────────────────── */
.auth-alt-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #718096;
    text-decoration: none;
    line-height: 1.5;
}

.auth-alt-link a,
a.auth-alt-link {
    color: #004AAD;
    font-weight: 600;
    text-decoration: none;
}

.auth-alt-link a:hover,
a.auth-alt-link:hover {
    text-decoration: underline;
}

/* ── Flash / message block ─────────────────────────────────────── */
.auth-message {
    padding: 10px 14px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    display: none;
}

.auth-message.error {
    background: #fff5f5;
    border: 1px solid #fdd;
    color: #b02020;
    display: block;
}

.auth-message.success {
    background: #f0fdf4;
    border: 1px solid #bbf0cc;
    color: #1a6e3c;
    display: block;
}

/* ── Image side ────────────────────────────────────────────────── */
.auth-image-side {
    flex: 1;
    min-width: 0;
    background-image: url('/static/images/rekmatch-login-register.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.auth-image-side::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 74, 173, 0.45), rgba(0, 20, 60, 0.3));
}

/* ── Mobile ────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .auth-image-side { display: none; }

    .auth-form-side {
        padding: 40px 20px 60px;
        justify-content: flex-start;
        padding-top: 56px;
    }

    .auth-form-box {
        max-width: 100%;
    }
}

@media (max-width: 420px) {
    .auth-heading { font-size: 22px; }
    .auth-form-side { padding: 40px 16px 60px; }
}
