.auth-modal {
	position: fixed;
	top: 0; left: 0; width: 100%; height: 100%;
	background: rgba(0,0,0,0.7);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10000;
}
.auth-modal-content {
	background: transparent;
	padding: 2rem;
	border-radius: 1rem;
	max-width: 400px;
	width: 90%;
	position: relative;
}
.auth-modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    cursor: pointer;
    font-size: 1.5rem;

    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;

    background-color: #f5f5f5; /* oder #6EC1E4, je nach Look */
    border-radius: 50%;
	border-color: #333;
    color: #333;
    transition: background-color 0.2s ease;
}
.auth-modal-close:hover {
    background-color: #6EC1E4;
    color: white;
}

.login-popup-trigger {
	cursor: pointer;
	/*position: fixed;
	top: 20px;
	right: 20px;
	z-index: 9999;*/
}

/* --- Modal login form css ---*/

/* ============================ */
/* Modal-Login-Spezifisches CSS */
/* ============================ */

.auth-modal #login-form {
    max-width: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 30px 20px;
	padding-bottom: 10px;
    background-color: #ffffff;
    margin: 0 auto;
}

/* Logo-Anpassung im Modal (optional) */
.auth-modal .login-logo {
    margin-top: 20px;
    margin-bottom: 40px;
    max-width: 80%;
    height: auto;
}

/* Headline-Container bleibt abgedunkelt */
.auth-modal .login-headline-container {
    background-color: rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

/* Message-Box */
.auth-modal .login-message-box {
    background-color: #ffffff;
    color: #000;
    border: 1px solid #ccc;
    box-shadow: none;
}

/* Input-Felder */
.auth-modal .login-field input[type="text"],
.auth-modal .login-field input[type="password"] {
    border-color: #6EC1E4;
    background-color: #fefefe;
    color: #000;
}

.auth-modal .login-field input[type="text"]::placeholder,
.auth-modal .login-field input[type="password"]::placeholder {
    color: #aaa;
}

/* Passwort-Sichtbarkeit */
.auth-modal .pw_toggle {
    border-color: #6EC1E4;
    background-color: #ffffff;
}

.auth-modal .toggle-password {
    color: #0073aa;
}

/* Checkbox-Styling */
.auth-modal .login-field.remember-me label {
    color: #000;
}

/* Submit-Button */
.auth-modal .login-field button[type="submit"] {
    background-color: #0073aa;
    color: #ffffff;
    border-radius: 5px;
    font-weight: bold;
}

.auth-modal .login-field button[type="submit"]:hover {
    background-color: #005a87;
}

/* Fehlermeldung */
.auth-modal #error-message {
    color: red;
}

/* Passwort vergessen + Registrierung */
.auth-modal .lost-password-section,
.auth-modal .register-container {
    color: #fff;
	text-align: center;
}

.auth-modal .lost-password-link,
.auth-modal .register-link {
    color: #6EC1E4;
}

.auth-modal .lost-password-link:hover,
.auth-modal .register-link:hover {
    color: #0073aa;
    text-decoration: underline;
}

/* Social Login Buttons */
.auth-modal .social-login-buttons img {
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
}

.auth-modal .spacer-line {
    background-color: #ccc !important;
}

.auth-modal .spacer-text {
    color: #aaa;
}

/* Gemeinsamer Stil */
.auth-modal #ajax-login-message {
    margin-top: 20px;
    font-size: 16px;
    text-align: center;
    font-weight: bold;
}

/* ✅ Erfolgsmeldung */
.auth-modal #ajax-login-message.login-success {
	color: green; /* dein Akzentgrün */
	font-weight: bold;
	text-align: center;
}

/* ❌ Fehlermeldung */
.auth-modal #ajax-login-message.login-error {
	color: #e74c3c;
	font-weight: bold;
	text-align: center;
}

/* Hintergrund wie .auth-modal */
.auth-loading-screen {
	position: fixed;
	top: 0; left: 0; width: 100%; height: 100%;
	background: rgba(0, 0, 0, 0.7); /* wie .auth-modal */
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10001; /* über Modal, aber unter kritischen Layern */
}

/* Zentrale Box wie .auth-modal-content + .auth-modal #login-form */
.auth-loading-box {
	background: #ffffff;
	padding: 1rem;
	border-radius: 1rem;
	max-width: 300px;
	width: 90%;
	text-align: center;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Spinner bleibt gleich */
.auth-loading-spinner {
	width: 35px;
	height: 35px;
	border: 6px solid #ccc;
	border-top: 6px solid #6EC1E4;
	border-radius: 50%;
	animation: spin 3s linear infinite;
	margin: 0 auto 20px auto;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.auth-loading-text {
	color: #0073aa;
	font-size: 14px;
	font-weight: bold;
    padding-bottom: 0%;
    margin-bottom: 0%;
}

/* Dot-Animation wie gewünscht */
#dot-loader::after {
	content: '';
	display: inline-block;
	width: 1em;
	text-align: left;
	animation: dots 3s steps(3, end) infinite;
}

@keyframes dots {
	0%   { content: ''; }
	33%  { content: '.'; }
	66%  { content: '..'; }
	100% { content: '...'; }
}