:root {
    --auth-blue: #003e70;
    --auth-blue-dark: #002c50;
    --auth-text: #151a22;
    --auth-muted: #68717d;
    --auth-border: #d7dde4;
    --auth-surface: #ffffff;
    --auth-page: #f3f6f8;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    color: var(--auth-text);
    background: var(--auth-page);
    font-family: "Poppins", sans-serif;
}

a { color: inherit; }

.auth_page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: var(--auth-surface);
}

.auth_media {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--auth-blue-dark);
}

.auth_video,
.auth_media_overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.auth_video { object-fit: cover; }

.auth_media_overlay {
    background: linear-gradient(180deg, rgba(0, 25, 48, .2), rgba(0, 31, 60, .42));
    pointer-events: none;
}

.auth_logo,
.auth_website_link { position: absolute; z-index: 2; }

.auth_logo { top: 34px; left: 38px; }

.auth_logo img {
    display: block;
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .18));
}

.auth_website_link {
    top: 42px;
    right: 38px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(8px);
    background: rgba(0, 35, 66, .18);
    transition: background .2s ease, color .2s ease;
}

.auth_website_link:hover { background: #fff; color: var(--auth-blue); }

.auth_panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px clamp(28px, 7vw, 110px);
    background: #fff;
}

.auth_form_wrap { width: min(100%, 480px); }

.auth_heading {
    margin: 0 0 10px;
    color: var(--auth-text);
    font-size: clamp(34px, 3vw, 52px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -.035em;
}

.auth_switch {
    margin: 0 0 34px;
    color: var(--auth-muted);
    font-size: 14px;
}

.auth_switch a,
.auth_forgot {
    color: var(--auth-blue);
    font-weight: 500;
    text-decoration: none;
}

.auth_switch a:hover,
.auth_forgot:hover { text-decoration: underline; }

.auth_field { margin-bottom: 20px; }

.auth_field_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth_label {
    display: block;
    margin-bottom: 8px;
    color: #343b45;
    font-size: 13px;
    font-weight: 500;
}

.auth_input_wrap { position: relative; }

.auth_input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--auth-border);
    border-radius: 5px;
    outline: 0;
    background: #fff;
    color: var(--auth-text);
    font: inherit;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.auth_input::placeholder { color: #9aa2ad; }

.auth_input:focus {
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 3px rgba(0, 62, 112, .1);
}

.auth_input_has_toggle { padding-right: 52px; }

.auth_password_toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--auth-muted);
    cursor: pointer;
    font-size: 17px;
}

.auth_hint { display: block; margin-top: 7px; color: var(--auth-muted); font-size: 12px; }
.auth_error { margin: -8px 0 16px; color: #b42318; font-size: 13px; }
.auth_error[hidden] { display: none; }

.auth_submit {
    width: 100%;
    min-height: 52px;
    margin-top: 7px;
    border: 1px solid var(--auth-blue);
    border-radius: 5px;
    background: var(--auth-blue);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.auth_submit:hover { background: var(--auth-blue-dark); border-color: var(--auth-blue-dark); }
.auth_submit:disabled { opacity: .55; cursor: not-allowed; }

.auth_alert {
    margin-bottom: 24px;
    padding: 12px 14px;
    border: 1px solid #b9d3e6;
    border-radius: 5px;
    background: #edf7ff;
    color: var(--auth-blue-dark);
    font-size: 13px;
}

.auth_alert_danger { border-color: #f3b7b2; background: #fff1f0; color: #8f2018; }
.auth_alert_warning { border-color: #f0d79c; background: #fff9e8; color: #72520a; }
.auth_alert_success { border-color: #a9dac0; background: #edfbf3; color: #17663c; }

@media (max-width: 900px) {
    .auth_page { grid-template-columns: 1fr; }
    .auth_media { min-height: 38vh; }
    .auth_panel { min-height: 62vh; padding: 52px 26px; }
    .auth_logo { top: 22px; left: 22px; }
    .auth_logo img { width: 72px; height: 72px; }
    .auth_website_link { top: 27px; right: 22px; }
}

@media (max-width: 520px) {
    .auth_media { min-height: 31vh; }
    .auth_panel { align-items: flex-start; padding: 42px 20px; }
    .auth_heading { font-size: 34px; }
    .auth_website_link { padding: 10px 13px; font-size: 12px; }
}
