:root {
    --primary: #003b95;
    --primary-blue: #0f6bff;
    --accent-orange: #ff8a18;
    --text-dark: #071633;
    --text-muted: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --bg: #f8fafc;
    --danger: #dc2626;
    --success: #16a34a;
    --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.18);
    --shadow-md: 0 16px 45px rgba(15, 23, 42, 0.08);
    --radius-lg: 28px;
    --radius-md: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

html,
body {
    width: 100%;
    min-height: 100%;
    background: var(--bg);
    color: var(--text-dark);
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* AUTH LAYOUT */

.auth-page {
    min-height: 100vh;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-shell {
    width: 100%;
    max-width: 1220px;
    min-height: 720px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.auth-visual {
    position: relative;
    padding: 42px;
    color: white;
    background:
        linear-gradient(135deg, rgba(3, 16, 55, 0.92), rgba(7, 58, 170, 0.78), rgba(255, 138, 24, 0.35)),
        url("../images/brand-bg.png");
    background-size: cover;
    background-position: center;
}

.auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(255,255,255,0.16), transparent 25%),
        radial-gradient(circle at 85% 85%, rgba(255,138,24,0.22), transparent 28%);
    pointer-events: none;
}

.auth-logo,
.auth-visual-content {
    position: relative;
    z-index: 2;
}

.auth-logo {
    width: 230px;
    background: rgba(255,255,255,0.92);
    padding: 12px 16px;
    border-radius: 18px;
}

.auth-visual-content {
    position: absolute;
    left: 42px;
    bottom: 70px;
    max-width: 460px;
}

.auth-visual-content h1 {
    font-size: 42px;
    line-height: 1.08;
    margin-bottom: 16px;
}

.auth-visual-content p {
    color: #e2e8f0;
    font-size: 17px;
    line-height: 1.7;
}

.auth-trust {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-trust span {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.24);
    backdrop-filter: blur(10px);
}

.auth-form-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px;
    background:
        radial-gradient(circle at top right, rgba(15,107,255,0.08), transparent 35%),
        linear-gradient(180deg, #ffffff, #f8fafc);
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(226,232,240,0.9);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.auth-card h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 15px;
}

/* FORMS */

.form-group {
    margin-bottom: 17px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
}

.form-control {
    width: 100%;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0 14px 0 42px;
    outline: none;
    font-size: 15px;
    background: var(--white);
    color: var(--text-dark);
    transition: 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(15, 107, 255, 0.12);
}

.password-toggle {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 8px 0 18px;
    font-size: 13px;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.checkbox-line input {
    width: 15px;
    height: 15px;
}

.text-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
}

.text-link:hover {
    text-decoration: underline;
}

/* BUTTONS */

.btn-primary {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--primary-blue), var(--accent-orange));
    color: white;
    font-weight: 900;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15,107,255,0.25);
}

.btn-google {
    width: 100%;
    height: 48px;
    border: 1px solid var(--border);
    background: white;
    border-radius: var(--radius-md);
    font-weight: 800;
    cursor: not-allowed;
    color: #334155;
}

/* AUTH EXTRAS */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 18px;
    color: var(--text-muted);
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-bottom {
    margin-top: 22px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ALERTS */

.alert,
.alert-success,
.alert-error {
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 14px;
}

.alert-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* RESPONSIVE */

@media (max-width: 980px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: 340px;
    }

    .auth-visual-content {
        position: relative;
        left: auto;
        bottom: auto;
        margin-top: 80px;
    }

    .auth-form-area {
        padding: 28px;
    }
}

@media (max-width: 560px) {
    .auth-page {
        padding: 0;
    }

    .auth-shell {
        min-height: 100vh;
        border-radius: 0;
    }

    .auth-visual {
        padding: 28px;
    }

    .auth-logo {
        width: 180px;
    }

    .auth-visual-content h1 {
        font-size: 32px;
    }

    .auth-card {
        padding: 24px;
    }
}
