:root {
    --auth-blue: #1684ff;
    --auth-blue-dark: #0752c9;
    --auth-text: #dceaff;
    --auth-muted: #91acd0;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    color: var(--auth-text);
    background: radial-gradient(circle at center, #143a62, #020d1c 72%);
    font-family: "Segoe UI", Arial, sans-serif;
}

.auth-page {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.auth-panel {
    display: flex;
    width: min(100%, 800px);
    min-height: 500px;
    align-items: center;
    justify-content: flex-end;
    padding: 18px 28px 18px 55%;
    /* border: 1px solid rgba(63, 145, 239, .48); */
    /* border-radius: 15px; */
    background: #03172e url('../img/auth-warrior-background.png') center/cover no-repeat;
    box-shadow: 0 20px 65px rgba(0, 5, 16, .7), inset 0 1px 0 rgba(255, 255, 255, .05);
    overflow: hidden;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 26px 28px;
    border: 1px solid rgba(71, 149, 239, .26);
    border-radius: 12px;
    background: rgba(1, 16, 35, .68);
    box-shadow: 0 14px 35px rgba(0, 7, 20, .28);
    backdrop-filter: blur(4px);
}

.auth-title {
    margin: 0;
    color: #8bc5ff;
    font-family: Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 12px rgba(23, 131, 255, .35);
    text-transform: uppercase;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 34px;
}

.auth-divider:before,
.auth-divider:after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, #1479ee);
}

.auth-divider:after {
    background: linear-gradient(90deg, #1479ee, transparent);
}

.auth-divider span {
    width: 14px;
    height: 14px;
    border: 2px solid #1888ff;
    transform: rotate(45deg);
    background: #0961d9;
    box-shadow: 0 0 12px rgba(24, 136, 255, .5);
}

.auth-alert {
    margin-bottom: 18px;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 6px;
    font-size: .86rem;
}

.auth-alert-error {
    color: #ffd7dc;
    background: rgba(171, 35, 57, .28);
}

.auth-alert-success {
    color: #d5fbe8;
    background: rgba(20, 126, 80, .28);
}

.auth-group {
    position: relative;
    margin-bottom: 18px;
}

.auth-group>i {
    position: absolute;
    top: 50%;
    left: 20px;
    color: #b9d3f5;
    font-size: 1.25rem;
    transform: translateY(-50%);
}

.auth-input {
    width: 100%;
    height: 58px;
    padding: 10px 54px 10px 58px;
    border: 1px solid #3d78bd;
    border-radius: 7px;
    outline: 0;
    color: #eef6ff;
    background: rgba(2, 19, 41, .62);
    font-size: 1rem;
    transition: border-color .15s, box-shadow .15s;
}

.auth-input::placeholder {
    color: #aac0dc;
}

.auth-input:focus {
    border-color: #39a1ff;
    box-shadow: 0 0 0 3px rgba(35, 143, 255, .14);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 16px;
    border: 0;
    color: #b9d3f5;
    background: transparent;
    font-size: 1.15rem;
    transform: translateY(-50%);
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 6px 0 24px;
    color: #bfd2ec;
    font-size: .88rem;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.auth-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--auth-blue);
}

.auth-muted-link {
    border: 0;
    padding: 0;
    color: #63aaff;
    background: transparent;
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    min-height: 58px;
    border: 1px solid #329aff;
    border-radius: 7px;
    color: #fff;
    background: linear-gradient(180deg, #168cff, #0756d4);
    box-shadow: 0 8px 22px rgba(0, 87, 211, .28);
    font-family: Georgia, serif;
    font-size: 1.45rem;
    font-weight: 700;
    text-transform: uppercase;
}

.auth-submit:hover,
.auth-submit:focus {
    color: #fff;
    background: linear-gradient(180deg, #299aff, #0648b7);
}

.social-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 20px;
    color: #bfd2ec;
}

.social-label:before,
.social-label:after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(42, 137, 241, .55);
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.social-button {
    display: inline-flex;
    width: 54px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border: 1px solid #3279c8;
    border-radius: 7px;
    color: #fff;
    background: rgba(16, 76, 151, .68);
    font-size: 1.45rem;
    cursor: default;
}

.social-button.google {
    color: #4285f4;
    background: #fff;
}

.auth-switch {
    margin: 26px 0 0;
    padding-top: 22px;
    border-top: 1px solid rgba(40, 130, 226, .45);
    color: #b8cce5;
    text-align: center;
}

.auth-switch a {
    color: #69afff;
    font-weight: 700;
    text-decoration: underline;
}

.auth-back {
    display: block;
    margin-top: 18px;
    color: #8faacb;
    text-align: center;
    font-size: .82rem;
}

.fixed-auth-page {
    height: 100vh;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.auth-panel.signup-panel,
.auth-panel.login-panel {
    display: grid;
    grid-template-columns: 50% 45%;
    width: min(100%);
    height: min(100%);
    min-height: 0;
    padding: 18px 28px 18px 0;
    /* border-radius: 12px; */
    background: #03172e url('../img/auth-warrior-background.png') center/cover no-repeat;
}

.auth-card.fixed-auth-card {
    position: relative;
    z-index: 1;
    grid-column: 2;
    align-self: center;
    justify-self: stretch;
    min-width: 0;
    width: auto;
    max-width: none;
    /* margin-left: 14px; */
    /* padding: 12px 14px; */
    border: 0;
    color: var(--auth-text);
    background: rgba(1, 13, 29, .72);
    box-shadow: none;
    backdrop-filter: none;
}

.signup-card .auth-title {
    font-size: 1.25rem;
}

.signup-card .auth-divider {
    margin: 5px 0 9px;
}

.signup-card .auth-divider span {
    width: 10px;
    height: 10px;
}

.signup-card .auth-alert {
    margin-bottom: 5px;
    padding: 5px 9px;
}

.signup-card .auth-group {
    margin-bottom: 15px;
}

.signup-card .auth-input {
    height: 36px;
    padding-left: 46px;
    font-size: .88rem;
}

.signup-card .auth-submit {
    min-height: 38px;
    font-size: 1rem;
}

.signup-card .auth-switch {
    margin-top: 7px;
    padding-top: 6px;
    font-size: .85rem;
}

.signup-card .auth-back {
    margin-top: 5px;
}

.signup-card .auth-group > i,
.login-card .auth-group > i {
    left: 16px;
    font-size: 1rem;
}

.login-card .auth-title {
    font-size: 1.45rem;
}

.login-card .auth-divider {
    margin: 8px 0 15px;
}

.login-card .auth-alert {
    margin-bottom: 7px;
    padding: 6px 10px;
}

.login-card .auth-group {
    margin-bottom: 10px;
}

.login-card .auth-input {
    height: 44px;
    padding-left: 46px;
    font-size: .9rem;
}

.login-card .auth-options {
    margin: 3px 0 10px;
}

.login-card .auth-submit {
    min-height: 42px;
    font-size: 1.1rem;
}

.login-card .social-label {
    margin: 10px 0 7px;
}

.login-card .social-buttons {
    gap: 10px;
}

.login-card .social-button {
    width: 42px;
    height: 36px;
    font-size: 1rem;
}

.login-card .auth-switch {
    margin-top: 9px;
    padding-top: 7px;
    font-size: .85rem;
}

.login-card .auth-back {
    margin-top: 5px;
}

@media (max-width: 991.98px) {
    .auth-panel {
        min-height: 650px;
        padding: 28px 34px 28px 48%;
        background-position: center;
    }

    .auth-card {
        padding: 24px;
    }
}

@media (max-width: 767.98px) {
    .auth-page {
        padding: 14px;
    }

    .fixed-auth-page {
        padding: 10px;
    }

    .auth-panel {
        width: 100%;
        min-height: auto;
        justify-content: center;
        padding: 24px 18px;
        border-radius: 12px;
        background-position: 31% center;
    }

    .auth-panel.signup-panel,
    .auth-panel.login-panel {
        grid-template-columns: 1fr;
        height: 100%;
        min-height: 0;
        justify-content: center;
        padding: 14px 18px;
        background-position: 31% center;
    }

    .auth-card.fixed-auth-card {
        grid-column: 1;
        margin-left: 0;
    }

    .auth-panel:before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(1, 13, 29, .64);
        pointer-events: none;
    }

    .auth-panel {
        position: relative;
    }

    .auth-card {
        position: relative;
        z-index: 1;
        max-width: 440px;
    }

    .auth-title {
        font-size: 1.65rem;
    }

    .auth-divider {
        margin-bottom: 24px;
    }
}

@media (max-height: 500px) {
    .signup-card .auth-title,
    .login-card .auth-title {
        font-size: 1.1rem;
    }

    .signup-card .auth-divider,
    .login-card .auth-divider {
        margin: 5px 0 9px;
    }

    .signup-card .auth-input,
    .login-card .auth-input {
        height: 32px;
    }

    .signup-card .auth-group,
    .login-card .auth-group {
        margin-bottom: 4px;
    }

    .signup-card .auth-submit,
    .login-card .auth-submit {
        min-height: 34px;
    }

    .signup-card .auth-switch,
    .login-card .auth-switch {
        margin-top: 4px;
        padding-top: 4px;
    }
}
