

.auth-app-shell {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: #0d0f14;
    color: #c8cdd8;
}

.auth-bg {
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, #0d1526 0%, #0d0f14 60%, #0a1020 100%);
    z-index: 0;
}

.auth-bg-glow {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 60% 20%, rgba(26, 143, 255, 0.08) 0%, transparent 65%),
        radial-gradient(ellipse at 20% 80%, rgba(94, 106, 210, 0.06) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.auth-page {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: linear-gradient(160deg, #161c28 0%, #111520 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(26, 143, 255, 0.06);
    scrollbar-width: none;
}

.auth-card::-webkit-scrollbar {
    display: none;
}

.auth-accent-line {
    height: 3px;
    background: linear-gradient(90deg, #1a8fff 0%, #5e6ad2 55%, #a855f7 100%);
    border-radius: 20px 20px 0 0;
}

.auth-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 24px 14px;
}

.auth-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(26, 143, 255, 0.18), rgba(94, 106, 210, 0.12));
    border: 1px solid rgba(26, 143, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    font-family: "Raleway", sans-serif;
    flex-shrink: 0;
}

.auth-brand-title {
    font-family: "Raleway", sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.auth-brand-sub {
    margin-top: 2px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
}

.auth-tabs {
    padding: 0 24px 18px;
}

.auth-tabs-inner {
    display: flex;
    gap: 3px;
    padding: 3px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.auth-tab {
    flex: 1;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: rgba(255, 255, 255, 0.36);
    padding: 9px 0;
    font-family: "Raleway", sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab.active {
    background: linear-gradient(135deg, #0e55b8, #083d8a);
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(14, 85, 184, 0.4);
}

.auth-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.62);
}

.auth-form {
    padding: 4px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-form-title {
    font-family: "Raleway", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.auth-form-copy {
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.46);
    margin-top: -4px;
}

.auth-alert {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 12.5px;
    line-height: 1.5;
    border: 1px solid transparent;
}

.auth-alert-error {
    background: rgba(224, 85, 85, 0.12);
    border-color: rgba(224, 85, 85, 0.2);
    color: #ffb8b8;
}

.auth-alert-success {
    background: rgba(51, 180, 110, 0.12);
    border-color: rgba(51, 180, 110, 0.22);
    color: #b6f2cf;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-ff {
    position: relative;
    display: block;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.auth-ff:focus-within {
    border-color: rgba(26, 143, 255, 0.45);
    background: rgba(26, 143, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(26, 143, 255, 0.08);
}

.auth-input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.22);
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s;
}

.auth-ff:focus-within .auth-input-icon {
    color: rgba(26, 143, 255, 0.7);
}

.auth-input,
.auth-select {
    display: block;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #ffffff;
    font-size: 13.5px;
    font-family: "Roboto", sans-serif;
}

.auth-input {
    padding: 20px 42px 7px 38px;
}

.auth-input::placeholder {
    color: transparent;
}

.auth-select {
    appearance: none;
    padding: 22px 42px 9px 38px;
    cursor: pointer;
}

.auth-select option {
    color: #111520;
}

.auth-float-label {
    position: absolute;
    left: 38px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
    max-width: calc(100% - 56px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: "Roboto", sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    transition:
        top 0.18s ease,
        transform 0.18s ease,
        font-size 0.18s ease,
        color 0.18s ease;
}

.auth-input:focus ~ .auth-float-label,
.auth-input:not(:placeholder-shown) ~ .auth-float-label,
.auth-select ~ .auth-float-label {
    top: 8px;
    transform: none;
    font-size: 10px;
    color: #1a8fff;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.auth-pw-toggle {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    padding: 4px;
    font-size: 15px;
    transition: color 0.2s;
}

.auth-pw-toggle:hover {
    color: rgba(255, 255, 255, 0.65);
}

.auth-validation {
    font-size: 11px;
    color: #ff9494;
    padding-left: 4px;
}

.auth-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-checks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 2px;
}

.auth-check,
.auth-check-simple {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.auth-check-simple {
    align-items: center;
    gap: 8px;
}

.auth-check input[type="checkbox"],
.auth-check-simple input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.auth-cb {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 5px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.18s ease;
}

.auth-check-simple .auth-cb {
    margin-top: 0;
}

.auth-cb::after {
    content: "";
    width: 5px;
    height: 9px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg) scale(0) translateY(-1px);
    transition: transform 0.15s ease;
}

.auth-check input:checked ~ .auth-cb,
.auth-check-simple input:checked ~ .auth-cb {
    background: linear-gradient(135deg, #0e55b8, #083d8a);
    border-color: #0e55b8;
    box-shadow: 0 0 0 3px rgba(14, 85, 184, 0.2);
}

.auth-check input:checked ~ .auth-cb::after,
.auth-check-simple input:checked ~ .auth-cb::after {
    transform: rotate(45deg) scale(1) translateY(-1px);
}

.auth-check-copy,
.auth-remember-copy {
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.38);
}

.auth-check-copy a,
.auth-forgot {
    color: #1a8fff;
    text-decoration: none;
}

.auth-check-copy a:hover,
.auth-forgot:hover {
    text-decoration: underline;
}

.auth-forgot {
    font-size: 11.5px;
    white-space: nowrap;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.auth-divider span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.22);
    white-space: nowrap;
}

.auth-external-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-provider-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-family: "Raleway", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.22s ease;
}

.auth-provider-button:hover {
    border-color: rgba(26, 143, 255, 0.3);
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 143, 255, 0.08);
}

.auth-provider-icon {
    font-size: 16px;
}

.auth-submit {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 13px;
    background: linear-gradient(135deg, #0e55b8, #083d8a);
    box-shadow: 0 4px 20px rgba(14, 85, 184, 0.35);
    color: #ffffff;
    font-family: "Raleway", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.auth-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #1060c8, #0a4da0);
    box-shadow: 0 8px 28px rgba(14, 85, 184, 0.5);
    transform: translateY(-1px);
}

.auth-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.auth-empty-state {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.5;
}

.auth-layout-message {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #0d0f14;
    color: rgba(255, 255, 255, 0.72);
    font-family: "Raleway", sans-serif;
}

@media (max-width: 600px) {
    .auth-page {
        align-items: flex-start;
        padding: 16px 12px 24px;
    }

    .auth-card {
        max-height: none;
    }

    .auth-card-header,
    .auth-tabs,
    .auth-form {
        padding-left: 18px;
        padding-right: 18px;
    }

    .auth-bottom-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
