@import url('https://fonts.googleapis.com/css?family=Montserrat:400,800');

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0;
}

.auth-box {
    background-color: #000000;
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    position: relative;
    overflow: hidden;
    width: 920px;
    max-width: 100%;
    min-height: 650px;
    height: min(720px, 92vh);
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
}

.auth-home-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 110;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    font-size: 13px;
    text-decoration: none;
}

body[data-theme="light"] .auth-home-btn {
    border-color: rgba(0, 0, 0, 0.22);
    background: rgba(0, 0, 0, 0.04);
}

@media (max-width: 980px) {
    .auth-box {
        width: 100%;
        max-width: 860px;
    }
}

body[data-theme="light"] .auth-box {
    background-color: #ffffff;
    color: #000000;
}

.auth-box h1 {
    font-weight: 800;
    margin: 0;
}

.auth-box p {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin: 20px 0 30px;
}

.auth-box span {
    font-size: 12px;
}

.auth-link {
    color: inherit;
    font-size: 14px;
    text-decoration: none;
    margin: 15px 0;
}

.auth-btn {
    border-radius: 20px;
    border: 1px solid var(--primary-bg);
    background-color: var(--primary-bg);
    color: var(--primary-text);
    font-size: 12px;
    font-weight: 800;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
    cursor: pointer;
}

.auth-btn:active { transform: scale(0.95); }
.auth-btn:focus { outline: none; }

.auth-btn.ghost {
    background-color: transparent;
    border-color: currentColor;
    color: inherit;
}

.auth-mobile-toggle {
    display: none;
}

.auth-form {
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 50px;
    height: 100%;
    text-align: center;
}

form.auth-form[data-signup-wizard] {
    justify-content: flex-start;
    overflow-y: hidden;
    padding-top: 26px;
    padding-bottom: 24px;
}

@media (max-height: 720px) {
    form.auth-form[data-signup-wizard] {
        overflow-y: auto;
    }
}

body[data-theme="light"] .auth-form {
    background-color: #ffffff;
}

.auth-input {
    background-color: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.20);
    padding: 12px 15px;
    margin: 8px 0;
    width: 100%;
    border-radius: 8px;
    color: inherit;
}

.auth-input.is-invalid {
    border-color: rgba(239, 68, 68, 0.85) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.auth-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
}

.auth-field .auth-input {
    margin: 6px 0 0;
}

.auth-input-group {
    position: relative;
    width: 100%;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 14px;
    pointer-events: none;
}

.auth-input-group .auth-input {
    padding-left: 40px;
}

.auth-input-group select.auth-input {
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
}

body[data-theme="light"] .auth-input-group select.auth-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
}

body[data-theme="dark"] .auth-input option,
body:not([data-theme="light"]) .auth-input option {
    background: #101010;
    color: #ffffff;
}

body[data-theme="light"] .auth-input option {
    background: #ffffff;
    color: #000000;
}

.auth-span-2 {
    grid-column: span 2;
}

.auth-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--muted);
}

.auth-required {
    color: #ff3b3b;
}

.auth-btn--block {
    width: 100%;
    margin-top: 14px;
    margin-bottom: 16px;
}

.auth-signin-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
}

.auth-remember__input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--accent);
}

.auth-link--compact {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 560px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-span-2 {
        grid-column: auto;
    }
}

.auth-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 16px 0 6px;
}

.auth-stepper-dot {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
}

body[data-theme="light"] .auth-stepper-dot {
    border-color: rgba(0, 0, 0, 0.22);
    background: rgba(0, 0, 0, 0.04);
}

.auth-stepper-dot.is-active {
    background: var(--primary-bg);
    border-color: var(--primary-bg);
    color: var(--primary-text);
}

.auth-step {
    width: 100%;
    display: none;
    flex: 1 1 auto;
}

.auth-step[aria-hidden="true"],
.auth-step[hidden] {
    display: none !important;
}

.auth-step.is-active {
    display: flex;
    flex-direction: column;
}

.auth-step-nav {
    width: 100%;
    display: flex;
    gap: 10px;
    justify-content: stretch;
    margin-top: auto;
    padding-top: 18px;
}

.auth-step-nav .auth-btn {
    flex: 1 1 0;
    padding: 16px 18px;
    border-radius: 999px;
    font-size: 13px;
}

.auth-btn.secondary {
    background-color: transparent;
    border-color: currentColor;
    color: inherit;
}

.auth-check {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    text-align: left;
}

body[data-theme="light"] .auth-check {
    border-color: rgba(0, 0, 0, 0.18);
    background: rgba(0, 0, 0, 0.04);
}

.auth-check__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth-check__text {
    position: relative;
    display: block;
    width: 100%;
    padding-right: 56px;
    font-size: 12px;
    line-height: 1.35;
}

.auth-check__text::before {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: background 160ms ease, border-color 160ms ease;
}

.auth-check__text::after {
    content: '';
    position: absolute;
    right: 34px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ffffff;
    transition: right 160ms ease;
}

body[data-theme="light"] .auth-check__text::before {
    background: rgba(0, 0, 0, 0.10);
    border-color: rgba(0, 0, 0, 0.18);
}

body[data-theme="light"] .auth-check__text::after {
    background: #000000;
}

.auth-check__input:checked + .auth-check__text::before {
    background: rgba(220, 20, 60, 0.35);
    border-color: rgba(220, 20, 60, 0.55);
}

.auth-check__input:checked + .auth-check__text::after {
    right: 14px;
}

.auth-recaptcha {
    width: 100%;
    margin-top: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-recaptcha .g-recaptcha {
    margin: 0 auto;
}

@media (max-width: 420px) {
    .auth-recaptcha .g-recaptcha {
        transform: scale(0.92);
        transform-origin: top center;
    }
}

.auth-recaptcha__placeholder {
    width: 100%;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
    padding: 18px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-align: center;
}

body[data-theme="light"] .auth-recaptcha__placeholder {
    border-color: rgba(0, 0, 0, 0.22);
    background: rgba(0, 0, 0, 0.04);
}

.auth-email-verify {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.auth-verify-card {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    padding: 14px 14px;
    text-align: left;
}

body[data-theme="light"] .auth-verify-card {
    border-color: rgba(0, 0, 0, 0.18);
    background: rgba(0, 0, 0, 0.04);
}

.auth-verify-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.auth-verify-icon {
    font-size: 18px;
    margin-top: 2px;
    color: var(--accent);
}

.auth-verify-title {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.auth-verify-subtitle {
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.35;
}

.auth-verify-steps {
    margin: 10px 0 0 18px;
    padding: 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.auth-verify-steps li {
    margin: 6px 0;
}

.auth-verify-note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
}

.auth-verify-meta {
    margin-top: 10px;
    padding: 10px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.18);
}

body[data-theme="light"] .auth-verify-meta {
    border-color: rgba(0, 0, 0, 0.14);
    background: rgba(255, 255, 255, 0.55);
}

.auth-verify-email,
.auth-verify-timer {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.auth-verify-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: center;
}

.auth-verify-actions .auth-btn {
    width: 100%;
    padding: 14px 18px;
    white-space: nowrap;
}

.auth-verify-actions > .auth-btn:first-child {
    grid-column: 1 / -1;
}

.auth-btn.is-disabled,
.auth-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

body[data-theme="light"] .auth-input {
    border-color: rgba(0, 0, 0, 0.20);
}

.auth-form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.auth-sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.auth-box.right-panel-active .auth-sign-in-container {
    transform: translateX(100%);
}

.auth-sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.auth-box.right-panel-active .auth-sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: auth-show 0.6s;
}

.auth-box.is-recaptcha-step.right-panel-active .auth-sign-up-container {
    transform: none;
    left: 50%;
}

.auth-box.is-recaptcha-step.right-panel-active .auth-sign-in-container {
    transform: none;
    opacity: 0;
    pointer-events: none;
}

@keyframes auth-show {
    0%, 49.99% { opacity: 0; z-index: 1; }
    50%, 100% { opacity: 1; z-index: 5; }
}

.auth-overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.auth-box.right-panel-active .auth-overlay-container {
    transform: translateX(-100%);
}

.auth-overlay {
    background: var(--primary-bg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: var(--primary-text);
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.auth-box.right-panel-active .auth-overlay {
    transform: translateX(50%);
}

.auth-overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.auth-overlay-left { transform: translateX(-20%); }
.auth-box.right-panel-active .auth-overlay-left { transform: translateX(0); }

.auth-overlay-right { right: 0; transform: translateX(0); }
.auth-box.right-panel-active .auth-overlay-right { transform: translateX(20%); }

.auth-social-container {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.auth-hexagon-wrapper {
    display: flex;
    width: 56px;
    height: 56px;
    cursor: pointer;
    color: inherit;
}

.auth-hexagon {
    position: relative;
    width: 46%;
    height: 80%;
    margin: auto;
    color: var(--primary-text);
    background: var(--primary-bg);
    border: 1px solid rgba(0, 0, 0, 0.35);
    display: flex;
    align-content: center;
    justify-content: center;
    transition: 0.5s;
}

body[data-theme="dark"] .auth-hexagon {
    border-color: rgba(255, 255, 255, 0.35);
}

.auth-hexagon i {
    z-index: 1;
    margin: auto;
    font-size: 22px;
    color: var(--primary-text);
}

.auth-hexagon:before,
.auth-hexagon:after {
    position: absolute;
    content: "";
    background: inherit;
    border: inherit;
    height: 100%;
    width: 100%;
    border-radius: 0;
    transition: 0.5s;
    transform-origin: center;
}

.auth-hexagon:before { transform: rotateZ(60deg); }
.auth-hexagon:after { transform: rotateZ(-60deg); }

.auth-hexagon-wrapper:hover .auth-hexagon,
.auth-hexagon-wrapper:hover .auth-hexagon:before,
.auth-hexagon-wrapper:hover .auth-hexagon:after {
    border-radius: 16px;
}

.auth-hexagon-wrapper:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 12px;
}

@media (max-width: 720px) {
    html, body {
        height: auto;
    }

    body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .auth-wrapper {
        align-items: flex-start;
        padding: 20px 0;
    }

    .auth-box {
        width: 100%;
        max-width: 520px;
        min-height: auto;
        height: auto;
        max-height: none;
        overflow: visible;
    }
    .auth-overlay-container { display: none; }

    .auth-form-container {
        position: static;
        width: 100%;
        transform: none !important;
        opacity: 1 !important;
        animation: none !important;
    }

    .auth-sign-in-container,
    .auth-sign-up-container {
        display: none;
    }

    .auth-box.right-panel-active .auth-sign-up-container {
        display: block;
    }

    .auth-box:not(.right-panel-active) .auth-sign-in-container {
        display: block;
    }

    .auth-form { padding: 24px 16px; }

    .auth-form {
        height: auto;
    }

    .auth-mobile-toggle {
        display: inline-flex;
        margin-top: 12px;
        padding: 8px 10px;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.22);
        color: inherit;
        border-radius: 999px;
        font-size: 13px;
        cursor: pointer;
    }

    body[data-theme="light"] .auth-mobile-toggle {
        border-color: rgba(0, 0, 0, 0.22);
    }
}
