:root {
    --sow-black: #030303;
    --sow-panel: rgba(13, 13, 15, 0.96);
    --sow-panel-soft: rgba(24, 24, 27, 0.88);
    --sow-red: #a8141e;
    --sow-red-bright: #d52a35;
    --sow-red-dark: #620910;
    --sow-silver: #d7d7da;
    --sow-muted: #88888f;
    --sow-border: rgba(255, 255, 255, 0.10);
}

* {
    box-sizing: border-box;
}

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

body.sow-login-page {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--sow-silver);
    background: var(--sow-black);
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}

.sow-login-page .sow-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 35%, rgba(142, 12, 21, 0.16), transparent 34%),
        radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.035), transparent 24%),
        linear-gradient(145deg, #000 0%, #080809 48%, #020202 100%);
}

.sow-login-page .sow-page::before,
.sow-login-page .sow-page::after {
    position: absolute;
    z-index: 0;
    width: 42vw;
    height: 1px;
    content: "";
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(177, 23, 32, 0.46), transparent);
}

.sow-login-page .sow-page::before {
    top: 18%;
    left: -10%;
    transform: rotate(-32deg);
}

.sow-login-page .sow-page::after {
    right: -10%;
    bottom: 18%;
    transform: rotate(-32deg);
}

.sow-atmosphere,
.sow-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sow-grid {
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: radial-gradient(circle at center, #000, transparent 72%);
    mask-image: radial-gradient(circle at center, #000, transparent 72%);
}

.sow-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    background: var(--sow-red);
}

.sow-glow--one {
    top: -180px;
    left: -160px;
}

.sow-glow--two {
    right: -180px;
    bottom: -190px;
}

.sow-login-shell {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
    padding: 44px 20px 30px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.sow-login-card {
    position: relative;
    width: 100%;
    max-width: 470px;
    padding: 40px 44px 34px;
    border: 1px solid var(--sow-border);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 35%),
        var(--sow-panel);
    box-shadow:
        0 34px 80px rgba(0, 0, 0, 0.72),
        0 0 0 1px rgba(0, 0, 0, 0.75) inset,
        0 0 42px rgba(130, 8, 16, 0.08);
    backdrop-filter: blur(18px);
}

.sow-login-card::before {
    position: absolute;
    top: -1px;
    left: 50%;
    width: 42%;
    height: 2px;
    content: "";
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--sow-red-bright), transparent);
    box-shadow: 0 0 16px rgba(213, 42, 53, 0.6);
}

.sow-login-card::after {
    position: absolute;
    inset: 9px;
    content: "";
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.025);
    border-radius: 4px;
}

.sow-brand {
    position: relative;
    z-index: 1;
    margin-bottom: 29px;
    text-align: center;
}

.sow-emblem {
    position: relative;
    width: 112px;
    height: 112px;
    margin: -3px auto 18px;
    overflow: hidden;
    border: 1px solid rgba(220, 220, 220, 0.23);
    border-radius: 50%;
    background: #020202;
    box-shadow:
        0 0 0 5px rgba(255, 255, 255, 0.025),
        0 0 34px rgba(168, 20, 30, 0.22);
}

.sow-emblem::after {
    position: absolute;
    inset: 0;
    content: "";
    border-radius: inherit;
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.72);
}

.sow-emblem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
}

.sow-kicker {
    margin: 0 0 6px;
    color: var(--sow-red-bright);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.28em;
    line-height: 1.5;
    text-transform: uppercase;
}

.sow-brand h1 {
    margin: 0;
    color: #f1f1f2;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 6vw, 31px);
    font-weight: 700;
    letter-spacing: 0.045em;
    line-height: 1.12;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}

.sow-brand h1 span {
    color: #bcbcc0;
}

.sow-subtitle {
    margin: 10px 0 0;
    color: var(--sow-muted);
    font-size: 12px;
    line-height: 1.6;
}

.sow-login-form {
    position: relative;
    z-index: 1;
}

.sow-form-group {
    margin-bottom: 19px;
}

.sow-form-group > label {
    display: block;
    margin-bottom: 8px;
    color: #b5b5ba;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sow-input-wrap {
    position: relative;
}

.sow-input-wrap > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 16px;
    color: #75757c;
    font-size: 13px;
    transform: translateY(-50%);
    transition: color 180ms ease;
}

.sow-login-page .sow-input-wrap .au-input {
    width: 100%;
    height: 50px;
    padding: 0 49px 0 43px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 4px;
    outline: none;
    color: #f0f0f1;
    background: var(--sow-panel-soft);
    box-shadow: inset 0 1px 7px rgba(0, 0, 0, 0.34);
    font-size: 13px;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.sow-login-page .sow-input-wrap .au-input::placeholder {
    color: #5f5f65;
}

.sow-login-page .sow-input-wrap .au-input:hover {
    border-color: rgba(255, 255, 255, 0.17);
}

.sow-login-page .sow-input-wrap .au-input:focus {
    border-color: rgba(204, 36, 47, 0.72);
    background: rgba(29, 29, 32, 0.98);
    box-shadow:
        0 0 0 3px rgba(168, 20, 30, 0.12),
        inset 0 1px 7px rgba(0, 0, 0, 0.32);
}

.sow-input-wrap:focus-within > i {
    color: var(--sow-red-bright);
}

.sow-password-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 7px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    outline: none;
    color: #77777d;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        color 180ms ease,
        background-color 180ms ease;
}

.sow-password-toggle:hover,
.sow-password-toggle:focus-visible {
    color: #d3d3d6;
    background: rgba(255, 255, 255, 0.055);
}

.sow-login-page .sow-login-options {
    display: flex;
    margin: -2px 0 23px;
    align-items: center;
    justify-content: space-between;
}

.sow-login-page .sow-login-options label {
    display: flex;
    margin: 0;
    align-items: center;
    color: #8e8e94;
    font-size: 11px;
    cursor: pointer;
}

.sow-login-options input {
    width: 14px;
    height: 14px;
    margin: 0 7px 0 0;
    accent-color: var(--sow-red);
}

.sow-login-page .sow-login-options a,
.sow-register a {
    color: #bfbfc3;
    font-size: 11px;
    text-decoration: none;
    transition: color 180ms ease;
}

.sow-login-page .sow-login-options a:hover,
.sow-login-page .sow-login-options a:focus-visible,
.sow-register a:hover,
.sow-register a:focus-visible {
    color: var(--sow-red-bright);
}

.sow-captcha {
    display: flex;
    min-height: 78px;
    margin: 0 0 20px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.24);
}

.sow-submit.au-btn {
    display: flex;
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0 21px;
    border: 1px solid rgba(255, 111, 119, 0.18);
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent 46%),
        linear-gradient(135deg, var(--sow-red-dark), var(--sow-red), #7e0b13);
    box-shadow:
        0 10px 24px rgba(101, 7, 14, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        filter 180ms ease;
}

.sow-submit.au-btn:hover,
.sow-submit.au-btn:focus-visible {
    color: #fff;
    filter: brightness(1.15);
    transform: translateY(-1px);
    box-shadow:
        0 13px 30px rgba(118, 8, 16, 0.38),
        0 0 0 3px rgba(168, 20, 30, 0.13);
}

.sow-submit.au-btn:active {
    transform: translateY(1px);
}

.sow-register {
    padding-top: 24px;
    text-align: center;
}

.sow-register::before {
    display: block;
    width: 100%;
    height: 1px;
    margin-bottom: 21px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.10), transparent);
}

.sow-register p {
    margin: 0;
    color: #737379;
    font-size: 11px;
}

.sow-register a {
    margin-left: 3px;
    color: #c8c8cb;
    font-weight: 600;
}

.sow-alert {
    display: flex;
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 4px;
    align-items: flex-start;
    gap: 10px;
    font-size: 11px;
    line-height: 1.55;
}

.sow-alert.alert-danger {
    border: 1px solid rgba(255, 88, 99, 0.25);
    color: #ffc5c9;
    background: rgba(126, 12, 21, 0.24);
}

.sow-alert.alert-success {
    border: 1px solid rgba(90, 193, 116, 0.24);
    color: #bdebc9;
    background: rgba(26, 102, 47, 0.22);
}

.sow-alert i {
    margin-top: 3px;
}

.sow-alert ul {
    padding-left: 17px;
}

.sow-security-note {
    display: flex;
    margin: 19px 0 0;
    align-items: center;
    gap: 7px;
    color: #4d4d52;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sow-security-note i {
    color: #681016;
}

.sow-register-page .sow-field-hint {
    margin: 7px 0 0;
    color: var(--sow-muted);
    font-size: 10px;
    line-height: 1.5;
}

.sow-register-page .sow-register-terms {
    align-items: flex-start;
}

.sow-register-page .sow-register-terms label {
    align-items: flex-start;
    line-height: 1.6;
}

.sow-register-page .sow-register-terms input {
    flex-shrink: 0;
    margin-top: 2px;
}

@media (max-width: 575.98px) {
    .sow-login-shell {
        padding: 24px 14px 20px;
    }

    .sow-login-card {
        padding: 34px 24px 28px;
    }

    .sow-emblem {
        width: 98px;
        height: 98px;
    }
}

@media (max-width: 390px) {
    .sow-login-card {
        padding-right: 17px;
        padding-left: 17px;
    }

    .sow-captcha {
        min-height: 72px;
    }

    .sow-captcha .h-captcha {
        width: 303px;
        transform: scale(0.88);
        transform-origin: center;
    }

    .sow-login-options {
        gap: 12px;
    }
}

@media (max-width: 350px) {
    .sow-register-page .sow-captcha .h-captcha {
        flex-shrink: 0;
        transform: scale(0.80);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
