:root {
    --opti-navy: #12283a;
    --opti-blue: #00cdfe;
    --opti-blue-hover: #00b9e5;
    --opti-coral: #ff6b61;

    --auth-text: #17212b;
    --auth-muted: #687684;
    --auth-border: #dce3e8;
    --auth-error: #b42318;
}

* {
    box-sizing: border-box;
}

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

body {
    color: var(--auth-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-page {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background:
        url("../images/auth_background.f6ec06e03cd8.png")
        center center / cover no-repeat;
}

.auth-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(10, 31, 47, 0.17) 0%,
            rgba(10, 31, 47, 0.06) 48%,
            rgba(10, 31, 47, 0.11) 100%
        );
}

.auth-shell {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 100vh;
    min-height: 100dvh;
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: clamp(28px, 5vh, 48px) clamp(32px, 6vw, 90px);
}

.auth-card {
    width: min(420px, 100%);
    padding: 28px 36px 30px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    box-shadow:
        0 24px 70px rgba(12, 35, 51, 0.18),
        0 4px 18px rgba(12, 35, 51, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.auth-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.auth-logo {
    display: block;
    width: min(190px, 70%);
    height: auto;
}

.auth-content h1 {
    margin: 0 0 10px;
    color: var(--opti-navy);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.auth-content p {
    color: var(--auth-muted);
    line-height: 1.55;
}

.auth-content a {
    color: #007f9f;
    font-weight: 600;
    text-decoration: none;
}

.auth-content a:hover {
    text-decoration: underline;
}

.auth-content form {
    margin-top: 24px;
}

.auth-content input:not([type="checkbox"]):not([type="radio"]) {
    display: block;
    width: 100%;
    min-height: 46px;
    margin-top: 6px;
    padding: 10px 13px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--auth-text);
    font: inherit;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.auth-content input:not([type="checkbox"]):not([type="radio"]):focus {
    border-color: var(--opti-blue);
    box-shadow: 0 0 0 3px rgba(0, 205, 254, 0.16);
}

.auth-content button,
.auth-content input[type="submit"] {
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid var(--opti-blue);
    border-radius: 8px;
    background: var(--opti-blue);
    color: var(--opti-navy);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.05s ease;
}

.auth-content button:hover,
.auth-content input[type="submit"]:hover {
    border-color: var(--opti-blue-hover);
    background: var(--opti-blue-hover);
}

.auth-content button:active,
.auth-content input[type="submit"]:active {
    transform: translateY(1px);
}

.auth-content form > button,
.auth-content form > input[type="submit"] {
    width: 100%;
}

.auth-messages {
    margin: 0 0 22px;
}

.auth-message {
    padding: 11px 13px;
    border: 1px solid rgba(0, 127, 159, 0.22);
    border-radius: 8px;
    background: rgba(0, 205, 254, 0.08);
    color: var(--opti-navy);
    font-size: 0.9rem;
    line-height: 1.4;
}

.auth-message.error {
    border-color: rgba(180, 35, 24, 0.22);
    background: rgba(180, 35, 24, 0.07);
    color: var(--auth-error);
}

.auth-content ul.errorlist {
    margin: 6px 0 0;
    padding: 0;
    color: var(--auth-error);
    font-size: 0.88rem;
    list-style: none;
}

.auth-content hr {
    margin: 25px 0;
    border: 0;
    border-top: 1px solid var(--auth-border);
}

.auth-header {
    margin-bottom: 26px;
    text-align: center;
}

.auth-header h1 {
    margin-bottom: 7px;
}

.auth-header p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 0.95rem;
}

.auth-form {
    display: grid;
    gap: 18px;
    margin-top: 0 !important;
}

.auth-field {
    display: grid;
    gap: 6px;
}

.auth-field label,
.auth-field-heading label {
    color: #43515d;
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-field-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
}

.auth-field-heading a {
    font-size: 0.86rem;
}

.auth-field input {
    margin-top: 0 !important;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: #53616d;
    font-size: 0.9rem;
    cursor: pointer;
}

.auth-remember input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--opti-blue);
}

.auth-submit {
    width: 100%;
}

.auth-form-errors {
    padding: 10px 12px;
    border: 1px solid rgba(180, 35, 24, 0.22);
    border-radius: 8px;
    background: rgba(180, 35, 24, 0.07);
    color: var(--auth-error);
    font-size: 0.88rem;
}

.auth-form-errors p {
    margin: 0;
    color: inherit;
}

.auth-field-errors {
    color: var(--auth-error);
    font-size: 0.84rem;
}

.auth-switch {
    margin: 22px 0 0 !important;
    text-align: center;
    font-size: 0.9rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0 20px;
    color: var(--auth-muted);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

.auth-divider span {
    flex: 0 0 auto;
}

.auth-social {
    display: grid;
    gap: 10px;
}

.google-button,
.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid #d5dce1;
    border-radius: 8px;
    background: #ffffff;
    color: #25313b !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.google-button:hover,
.social-button:hover {
    background: #f8fafb;
    border-color: #bcc7cf;
    box-shadow: 0 2px 6px rgba(12, 35, 51, 0.07);
    text-decoration: none;
}

.google-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

@media (max-width: 700px) {
    .auth-page {
        background-position: 58% center;
    }

    .auth-overlay {
        background: rgba(10, 31, 47, 0.14);
    }

    .auth-shell {
        justify-content: center;
        padding: 24px 18px;
    }

    .auth-card {
        padding: 32px 26px 30px;
        border-radius: 16px;
    }

    .auth-logo {
        width: min(225px, 80%);
    }
}

@media (max-height: 700px) and (min-width: 701px) {
    .auth-shell {
        align-items: flex-start;
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

