/* Auth pages – blaue Container, helle Schrift */
html.auth-booting .auth-page-content {
    visibility: hidden;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    color: #ffffff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
    transition: none;
}

.auth-page .header {
    padding: 16px 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.app-hyperspeed.auth-page .header.glossy-header,
body.app-hyperspeed.auth-page .glossy-header {
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.app-hyperspeed.auth-page .glossy-header::before,
body.app-hyperspeed.auth-page .glossy-header::after {
    display: none !important;
}

.auth-page .header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-page .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.auth-page .brand-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary, #C9941A), var(--accent, #E6B422));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 16px;
}

.auth-page .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-page .nav-link {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
}

.auth-page .nav-link:hover {
    color: #ffffff;
    background: rgba(96, 165, 250, 0.15);
}

.auth-page .nav-link-primary {
    background: var(--primary, #C9941A);
    color: #ffffff !important;
}

.auth-page .nav-link-primary:hover {
    background: var(--primary-dark, #A67C14) !important;
}

.auth-page .login-card,
.auth-page .register-card {
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    padding: 48px;
}

.auth-page .login-header,
.auth-page .register-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-page .login-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary, #C9941A), var(--accent, #E6B422));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.auth-page .login-icon svg {
    width: 28px;
    height: 28px;
    color: white;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-page .form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 13px;
}

.auth-page .remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-page .remember-me input {
    accent-color: var(--primary, #C9941A);
    width: 16px;
    height: 16px;
}

.auth-page .btn {
    width: 100%;
    padding: 13px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: var(--primary, #C9941A);
    color: white;
    transition: background 0.2s, transform 0.2s;
}

.auth-page .btn:hover {
    background: var(--primary-dark, #A67C14);
    transform: translateY(-1px);
}

.auth-page .btn:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .auth-page .login-card,
    .auth-page .register-card {
        padding: 32px 24px;
    }

    .auth-page .header {
        padding: 14px 16px;
    }
}

.auth-page-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-page .brand-text {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95);
}

.auth-page .main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.auth-page .auth-card {
    background: rgba(8, 18, 52, 0.72);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(96, 165, 250, 0.28);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.auth-page .auth-title {
    color: #ffffff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95);
}

.auth-page .auth-subtitle {
    color: rgba(255, 255, 255, 0.88);
}

.auth-page form {
    width: 100%;
}

.auth-page .form-group {
    width: 100%;
    margin-bottom: 20px;
}

.auth-page .form-group .password-field {
    width: 100%;
    box-sizing: border-box;
}

.auth-page .form-group label {
    color: #ffffff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
}

.auth-page .form-group input,
.auth-page .form-group textarea,
.auth-page .form-group select,
.auth-page .password-field > input {
    width: 100%;
    box-sizing: border-box;
    display: block;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    background-color: rgba(15, 35, 85, 0.55) !important;
    border: 1.5px solid rgba(96, 165, 250, 0.28) !important;
    color: #ffffff !important;
    text-shadow: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

.auth-page .form-group input:focus,
.auth-page .form-group textarea:focus,
.auth-page .form-group select:focus {
    outline: none;
    border-color: rgba(147, 197, 253, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.22) !important;
}

.auth-page .form-group input::placeholder,
.auth-page .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.55) !important;
}

.auth-page .form-group input:-webkit-autofill,
.auth-page .form-group input:-webkit-autofill:hover,
.auth-page .form-group input:-webkit-autofill:focus,
.auth-page .form-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(15, 35, 85, 0.95) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

.auth-page .remember-me,
.auth-page .password-hint,
.auth-page .terms,
.auth-page .auth-footer {
    color: rgba(255, 255, 255, 0.88);
}

.auth-page .forgot-password,
.auth-page .auth-footer a,
.auth-page .terms a {
    color: #93c5fd;
}

.auth-page .forgot-password:hover,
.auth-page .auth-footer a:hover,
.auth-page .terms a:hover {
    color: #ffffff;
}

.auth-page .auth-footer {
    border-top-color: rgba(96, 165, 250, 0.22);
}

.auth-page .divider {
    color: rgba(255, 255, 255, 0.65);
}

.auth-page .divider::before,
.auth-page .divider::after {
    background: rgba(96, 165, 250, 0.25);
}

.auth-page .error-message {
    background: rgba(255, 16, 42, 0.15);
    border-color: rgba(255, 16, 42, 0.35);
    color: #ffb3bc;
    text-shadow: none;
}

.auth-page .success-message {
    background: rgba(46, 125, 50, 0.15);
    border-color: rgba(46, 125, 50, 0.35);
    color: #b9f6ca;
    text-shadow: none;
}

.auth-page .msg.success {
    display: block;
    background: rgba(46, 125, 50, 0.15);
    border: 1px solid rgba(46, 125, 50, 0.35);
    color: #b9f6ca;
    text-shadow: none;
}

.auth-page .msg.error {
    display: block;
    background: rgba(255, 16, 42, 0.15);
    border: 1px solid rgba(255, 16, 42, 0.35);
    color: #ffb3bc;
    text-shadow: none;
}
