:root {
    --bg-main: #f8faf7;
    --bg-orb-a: #f0edd8;
    --bg-orb-b: #d8ecea;
    --surface: #ffffff;
    --line: #dbe4df;
    --ink: #111827;
    --muted: #5f6878;
    --brand: #0f5d53;
    --brand-strong: #0b3f39;
    --accent: #b38b2a;
    --danger: #b42318;
    --shadow-lg: 0 24px 68px rgba(16, 24, 40, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
    color: var(--ink);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background:
        radial-gradient(circle at 0% 0%, var(--bg-orb-a) 0%, transparent 30%),
        radial-gradient(circle at 100% 0%, var(--bg-orb-b) 0%, transparent 34%),
        var(--bg-main);
    flex-direction: column;
    gap: 12px;
}

.auth-wrap {
    width: min(1140px, 100%);
    min-height: min(560px, calc(100vh - 40px));
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.auth-hero {
    position: relative;
    background: linear-gradient(155deg, #102c35 0%, #0e4441 42%, #1a5f56 100%);
    color: #e7fbf7;
    padding: 30px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.auth-hero::before,
.auth-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.auth-hero::before {
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.1);
    inset: auto auto -100px -80px;
}

.auth-hero::after {
    width: 180px;
    height: 180px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    inset: 40px -80px auto auto;
}

.hero-logo {
    width: 106px;
    height: auto;
    margin: 0 auto 14px;
    object-fit: contain;
}

.auth-hero h1 {
    margin: 0;
    font-size: clamp(28px, 3.1vw, 40px);
    line-height: 1.35;
    font-weight: 800;
}

.auth-hero p {
    margin: 14px 0 0;
    color: #c9efe7;
    line-height: 2;
    max-width: 41ch;
    text-align: center;
    margin-inline: auto;
}

.center-note {
    margin-top: 12px;
    font-weight: 700;
    color: #e8fff8;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 6px 14px;
    max-width: fit-content;
}

.hero-badges {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-badge {
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
}

.auth-form {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.auth-form .logo-line,
.auth-form .form-subtitle,
.auth-form .alert,
.auth-form form {
    width: min(430px, 100%);
}

.logo-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.logo-line img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.logo-line h2 {
    margin: 0;
    font-size: 22px;
    color: var(--brand-strong);
    font-weight: 800;
}

.form-subtitle {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.form-label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.form-control,
.input-group-text,
.input-group .btn {
    border-radius: 12px;
}

.form-control {
    border-color: #ccd8d4;
    padding: 11px 12px;
}

.form-control:focus {
    border-color: color-mix(in srgb, var(--brand) 46%, white 54%);
    box-shadow: 0 0 0 0.2rem rgba(15, 93, 83, 0.14);
}

.btn-login {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 12px;
    background: linear-gradient(130deg, var(--brand-strong) 0%, var(--brand) 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.btn-login:disabled {
    opacity: 0.78;
    cursor: not-allowed;
}

.alert {
    border-radius: 11px;
    font-size: 14px;
}

.auth-footer {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 980px) {
    body {
        padding: 14px;
    }

    .auth-wrap {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-hero {
        order: 2;
        padding: 24px;
    }

    .auth-form {
        order: 1;
        padding: 22px 18px;
    }

    .hero-logo {
        width: 84px;
    }
}
