/* Here lies the CSS concerned with the auth page */

.public-content-wrapper {
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.public-content-wrapper>.container {
    justify-content: center;
    align-items: center;
}

.auth-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    position: relative;
    z-index: 10;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background: linear-gradient(180deg, rgba(13, 6, 24, 0.88) 0%, rgba(8, 3, 15, 0.92) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 61, 255, 0.28);
    border-radius: 8px;
    padding: 2.5rem 2.35rem 2.25rem;
    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.85),
        0 0 40px rgba(124, 42, 232, 0.12),
        inset 0 1px 0 rgba(168, 85, 247, 0.15);
    position: relative;
}

.auth-tab-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-brand {
    text-align: center;
    margin-bottom: 1.75rem;
    user-select: none;
}

.auth-train-icon {
    width: 155px;
    margin: 0 auto 0.2rem;
    filter: drop-shadow(0 0 12px rgba(139, 61, 255, 0.45));
}

.auth-train-icon svg {
    width: 100%;
    height: auto;
    display: block;
}

.auth-logo-title {
    font-size: 3.1rem;
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    letter-spacing: 0.03em;
    margin-bottom: 0.55rem;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
}

.auth-logo-title .tsw-text {
    color: #f5f3f9;
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.12);
}

.auth-logo-title .six-text {
    margin-left: 0.08em;
    background: linear-gradient(180deg, #9d5cff 0%, #7424e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 14px rgba(139, 61, 255, 0.4));
}

.auth-logo-title .ti-text {
    margin-left: 0.04em;
    color: #f5f3f9;
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.12);
}

.auth-logo-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    width: 100%;
    margin-top: 0.25rem;
}

.auth-logo-subtitle::before,
.auth-logo-subtitle::after {
    content: "";
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg,
            rgba(139, 61, 255, 0.55) 0%,
            rgba(139, 61, 255, 0.75) 100%);
}

.auth-logo-subtitle span {
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.52em;
    padding-left: 0.52em;
    color: #c9c3d6;
    text-transform: uppercase;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
    position: relative;
}

.auth-tab-label {
    text-align: center;
    padding: 0.75rem 0.5rem;
    margin: 0;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast);
    user-select: none;
}

.auth-tab-label:first-child::before {
    content: "";
    position: absolute;
    right: 0;
    top: 22%;
    height: 56%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.09);
}

.auth-tab-label:hover {
    color: var(--text-secondary);
}

.auth-tab-label::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: transparent;
    transition: all var(--transition-fast);
}

#tab-login:checked~.auth-tabs .tab-login-label,
#tab-register:checked~.auth-tabs .tab-register-label {
    color: #9d5cff;
    font-weight: 700;
}

#tab-login:checked~.auth-tabs .tab-login-label::after,
#tab-register:checked~.auth-tabs .tab-register-label::after {
    background: linear-gradient(90deg, #7c2ae8 0%, #a855f7 50%, #7c2ae8 100%);
    box-shadow: 0 -2px 12px rgba(139, 61, 255, 0.65);
}

.auth-form {
    display: none;
}

#tab-login:checked~.auth-form-login {
    display: block;
}

#tab-register:checked~.auth-form-register {
    display: block;
}

.auth-input-group {
    display: flex;
    align-items: center;
    width: 100%;
    height: 50px;
    background: rgba(20, 15, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-bottom: 1rem;
    padding: 0 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.auth-input-group:focus-within {
    border-color: rgba(139, 61, 255, 0.65);
    background: rgba(24, 16, 38, 0.95);
    box-shadow: 0 0 14px rgba(139, 61, 255, 0.2);
}

.auth-input-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    color: #8e87a0;
    font-size: 1.05rem;
    margin-right: 0.85rem;
    flex-shrink: 0;
}

.auth-input-group:focus-within .auth-input-icon {
    color: #b47cff;
}

.auth-input {
    flex: 1;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.94rem;
}

.auth-input::placeholder {
    color: #827b94;
}

.auth-input-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #827b94;
    font-size: 1rem;
    margin-left: 0.65rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.auth-input-toggle:hover {
    color: var(--text-secondary);
}

.auth-submit-btn {
    width: 100%;
    height: 50px;
    margin-top: 0.35rem;
    background: linear-gradient(90deg, #6218c6 0%, #8432f6 50%, #6218c6 100%);
    border: 1px solid #9649ff;
    border-radius: 5px;
    color: var(--text-primary) !important;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    box-shadow:
        0 4px 22px rgba(124, 42, 232, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all var(--transition-fast);
}

.auth-submit-btn i {
    font-size: 0.88rem;
    transition: transform var(--transition-fast);
}

.auth-submit-btn:hover,
.auth-submit-btn:focus {
    background: linear-gradient(90deg, #7022de 0%, #9346ff 50%, #7022de 100%);
    border-color: #b175ff;
    box-shadow:
        0 6px 28px rgba(139, 61, 255, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.auth-submit-btn:hover i {
    transform: translateX(3px);
}

.auth-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.45rem 0 1.25rem;
}

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

.auth-divider span {
    font-size: 0.78rem;
    font-weight: 500;
    color: #7c758e;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-switch {
    text-align: center;
}

.auth-switch-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin: 0;
    color: #9649ff;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: color var(--transition-fast);
    user-select: none;
}

.auth-switch-link i {
    font-size: 0.78rem;
    transition: transform var(--transition-fast);
}

.auth-switch-link:hover {
    color: #b77cff;
}

.auth-switch-link:hover i {
    transform: translateX(3px);
}

@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.4rem 1.75rem;
    }

    .auth-logo-title {
        font-size: 2.5rem;
    }
}

/* Mobile styles need to be done */
.auth-train-icon img {
    width: 100%;
    height: auto;
    display: block;
}

.auth-legal-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0.15rem 0 0.85rem;
    font-size: 0.79rem;
    line-height: 1.45;
    color: #9e96b0;
    cursor: pointer;
    user-select: none;
}

.auth-legal-check input[type="checkbox"] {
    margin-top: 0.18rem;
    accent-color: #8b3dff;
    flex-shrink: 0;
    cursor: pointer;
}

.auth-legal-check.is-invalid {
    color: #fda4af;
}

.auth-input-group.is-invalid {
    border-color: rgba(244, 63, 94, 0.78);
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.22);
}

.auth-inline-error {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.65rem 0.8rem;
    margin-bottom: 0.85rem;
    border-radius: 6px;
    background: rgba(244, 63, 94, 0.14);
    border: 1px solid rgba(244, 63, 94, 0.45);
    color: #fecdd3;
    font-size: 0.83rem;
    font-weight: 500;
    line-height: 1.4;
}

.auth-inline-error[hidden] {
    display: none !important;
}

.auth-inline-error i {
    color: #fb7185;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.auth-legal-note {
    margin: 0.95rem 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #9e96b0;
    text-align: center;
}

.auth-legal-link {
    color: #b77cff;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-fast);
}

.auth-legal-link:hover {
    color: #d8b4fe;
}
