﻿
/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: #f4f7ff;
    color: #0f172a;
}

/* ================= WRAPPER ================= */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f4f7ff;
}

/* ================= LEFT BRAND PANEL ================= */
.auth-brand {
    flex: 1.2;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    padding: 70px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-header h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.brand-header span {
    font-size: 13px;
    opacity: 0.9;
}

.brand-description {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 420px;
    opacity: 0.95;
}

.brand-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

    .feature i {
        color: #dbeafe;
    }

.brand-footer {
    margin-top: 60px;
    font-size: 11px;
    opacity: 0.8;
}

/* ================= LOGIN CARD ================= */
.auth-card {
    flex: 0.8;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px;
}

/* HEADER */
.auth-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #1e3a8a;
}

.auth-header p {
    font-size: 13px;
    color: #64748b;
    margin-top: 5px;
}

/* ================= FORM ================= */
.auth-form {
    margin-top: 30px;
}

/* INPUT FIELD */
.field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
    transition: 0.2s ease;
}

    .field i {
        color: #2563eb;
        font-size: 14px;
    }

    .field input {
        width: 100%;
        border: none;
        outline: none;
        background: transparent;
        color: #0f172a;
        font-size: 14px;
    }

    /* FOCUS STATE */
    .field:focus-within {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
        background: #ffffff;
    }

/* ================= CAPTCHA ================= */
.captcha-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    align-items: center;
}

.captcha-img {
    width: 120px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid #dbeafe;
}

.captcha-row input {
    flex: 1;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    color: #0f172a;
    font-size: 14px;
    outline: none;
}

/* ================= BUTTON ================= */
.btn-primary {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
    margin-top: 10px;
}

    .btn-primary:hover {
        background: #1d4ed8;
        box-shadow: 0 8px 20px rgba(37,99,235,0.25);
    }

/* ================= LINKS ================= */
.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 12px;
}

    .auth-links a {
        color: #2563eb;
        text-decoration: none;
        font-weight: 600;
    }

        .auth-links a:hover {
            text-decoration: underline;
        }

/* ================= SECURITY NOTE ================= */
.security-note {
    margin-top: 25px;
    font-size: 11px;
    color: #64748b;
}

/* ================= MOBILE ENTERPRISE UX ================= */
@media (max-width: 900px) {

    .auth-wrapper {
        flex-direction: column;
        min-height: 100vh;
        background: #ffffff;
    }

    /* BRAND STACKED TOP */
    .auth-brand {
        flex: unset;
        padding: 30px 20px;
        text-align: center;
    }

    .brand-description,
    .brand-features,
    .brand-footer {
        display: none;
    }

    .brand-header h1 {
        font-size: 24px;
    }

    /* LOGIN CARD FULL MOBILE */
    .auth-card {
        padding: 25px 20px;
        justify-content: flex-start;
    }

    .auth-header {
        text-align: center;
        margin-top: 10px;
    }

        .auth-header h2 {
            font-size: 22px;
        }

        .auth-header p {
            font-size: 12px;
        }

    /* INPUT MOBILE OPTIMIZED */
    .field {
        padding: 14px;
        border-radius: 14px;
    }

        .field input {
            font-size: 15px;
        }

    /* CAPTCHA STACK */
    .captcha-row {
        flex-direction: column;
        align-items: stretch;
    }

    .captcha-img {
        width: 100%;
    }

    .captcha-row input {
        width: 100%;
        font-size: 15px;
    }

    /* BUTTON MOBILE */
    .btn-primary {
        padding: 16px;
        font-size: 15px;
        border-radius: 14px;
    }

    /* LINKS STACK */
    .auth-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* SECURITY NOTE */
    .security-note {
        text-align: center;
        font-size: 10px;
    }
}
