.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-box {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    border: 2px solid #69439b;
    padding: 2rem;
}

.auth-header {
    margin-bottom: 2rem;
    color: #69439b;
    text-align: center;
    position: relative;
}

.auth-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #502c7b;
}

.auth-header p {
    font-size: 1.125rem;
    color: #69439b;
    opacity: 0.8;
    line-height: 1.5;
    max-width: 80%;
    margin: 0 auto;
}

.auth-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
}

.auth-form-container {
    text-align: left;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
}

.form-group input:not([type="checkbox"]) {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: #f9fafb;
    position: relative;
    z-index: 0;
}

.form-group input:not([type="checkbox"]):focus,
.form-group input:not([type="checkbox"]):not(:placeholder-shown) {
    outline: none;
    border-color: #69439b;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(105, 67, 155, 0.15);
}

.form-group input::placeholder {
    color: #9ca3af;
    opacity: 0.7;
    font-style: italic;
}

.form-group input:focus::placeholder {
    opacity: 0.4;
}

.form-group input.error,
.form-group input.error:focus,
.form-group input.error:not(:placeholder-shown) {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: block;
}

.terms-group {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.2rem;
    border-radius: 0.25rem;
    border: 2px solid #d1d5db;
    accent-color: #69439b;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked {
    background-image: linear-gradient(90deg, #69439b, #24154a);
    border-color: #69439b;
}

.checkbox-label .link {
    color: #69439b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.checkbox-label .link:hover {
    color: #4b2d6e;
    text-decoration: underline;
}

.opt-in-info {
    background-color: #f9fafb;
    border-left: 3px solid #69439b;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border-radius: 0.25rem;
}

.opt-in-info p {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
}

.opt-in-info a {
    color: #69439b;
    text-decoration: none;
    font-weight: 600;
}

.opt-in-info a:hover {
    text-decoration: underline;
}

.submit-button {
    width: 190px;
    padding-top: 6px;
    padding-right: 6px;
    padding-bottom: 6px;
    padding-left: 6px;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    background-image: linear-gradient(160deg, #41C55F 20%, #216F33 90%) !important;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px #41c35e4d !important;
}

.submit-button:hover {
    transform: translateY(-2px) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 6px 20px #41c35e66 !important;
}

.submit-button:active {
    transform: translateY(1px);
}

.submit-button:focus {
    outline: none;
    box-shadow: 0 6px 20px #41c35e66 !important;
}

.submit-button-wrapper {
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.submit-button:disabled {
    opacity: 0.6;
    pointer-events: none;
    transform: none !important;
}

/* Validation Hints */
.validation-hints {
    text-align: center;
    margin-top: 0;
    padding: 0.75rem 1rem;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.validation-hints-title {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.validation-hints-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.hint-item {
    font-size: 0.75rem;
    color: #69439b;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px dashed #d1d5db;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
}

.hint-item:hover {
    background: #ede9f5;
    border-color: #69439b;
    text-decoration-style: solid;
}

/* Highlight animation for scrolled-to fields */
.highlight-field {
    animation: highlightPulse 1.5s ease-out;
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(105, 67, 155, 0.6);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(105, 67, 155, 0.3);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(105, 67, 155, 0);
    }
}

.hint-item.hint-terms {
    color: #9ca3af;
    background: #f3f4f6;
    font-weight: 500;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.register-link {
    font-size: 0.95rem;
    color: #6b7280;
}

.register-link a {
    color: #69439b;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.register-link a:hover {
    color: #4b2d6e;
    text-decoration: underline;
}

.legal-links {
    text-align: center;
    margin-top: 40px;
    color: #343434;
}

.legal-links a {
    color: #69439b;
    text-decoration: none;
    font-weight: 600;
}

.legal-links a:hover {
    text-decoration: underline;
}

/* Styling für die E-Mail-Bestätigungsseite */
.verification-message {
    margin-bottom: 2rem;
    color: #4b5563;
    line-height: 1.6;
}

.verification-message p {
    margin-bottom: 1rem;
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.alert-success {
    background-color: rgba(65, 195, 94, 0.1);
    border-left: 4px solid #41c35e;
    color: #16a34a;
}

.mt-4 {
    margin-top: 1rem;
}

.logout-link {
    background: none;
    border: none;
    color: #69439b;
    text-decoration: underline;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.logout-link:hover {
    color: #4b2d6e;
}

/* E-Mail-Infobox Styling */
.email-info-box {
    display: flex;
    background-color: rgba(105, 67, 155, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid #69439b;
}

.email-info-icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.email-info-content {
    flex: 1;
}

.email-info-content h3 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #4b2d6e;
}

.email-info-content ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.email-info-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.email-info-content ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #69439b;
}

/* Erfolgsbestätigungsseite */
.success-icon {
    font-size: 3.5rem;
    color: #41c35e;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.auth-actions .submit-button {
    min-width: 200px;
}

@media (max-width: 480px) {
    .auth-container {
        padding: 0.75rem;
        /* Inline margin-top auf der Box etwas reduzieren, damit mehr Inhalt sichtbar ist */
    }

    .auth-container .auth-box {
        padding: 0.75rem;
        border-width: 1px;
    }

    .auth-form-container {
        padding: 1.1rem;
    }

    .auth-form {
        gap: 1.1rem;
    }

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
    }

    .form-group input:not([type="checkbox"]) {
        padding: 0.7rem 0.9rem;
        font-size: 0.95rem;
    }

    .submit-button {
        width: 170px;
        margin-top: 0.75rem;
        font-size: 0.95rem;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .opt-in-info {
        padding: 0.6rem 0.8rem;
        margin: 0.75rem 0;
    }

    .opt-in-info p {
        font-size: 0.8rem;
    }

    .checkbox-label {
        font-size: 0.8rem;
    }

    .password-requirements {
        margin-top: 8px;
    }

    .auth-header h2 {
        font-size: 1.5rem;
    }
}


/* Glow Background Elements */
.glow-bg {
    position: absolute;
    pointer-events: none;
    opacity: 0.4;
}

.glow-bg img {
    width: 600px;
    height: auto;
    opacity: 0.7;
    z-index: 1000;
    max-width: none;
}

.glow-bg-1 {
    top: 200px;
    left: -20px;
}

.glow-bg-2 {
    top: 700px;
    right: -20px;
}

.glow-bg-3 {
    top: 1200px;
    left: -20px;
}

.glow-bg-4 {
    top: 1700px;
    right: -20px;
}

.glow-bg-5 {
    top: 2200px;
    left: -20px;
}

.glow-bg-6 {
    top: 2700px;
    right: -20px;
}

.glow-bg-7 {
    top: 3200px;
    left: -20px;
}

.glow-bg-8 {
    top: 3700px;
    right: -20px;
}

.glow-bg-9 {
    top: 4200px;
    left: -20px;
}

.glow-bg-10 {
    top: 4700px;
    right: -20px;
}

/* Green glow elements with higher opacity */
.glow-bg-1 img,
.glow-bg-3 img,
.glow-bg-5 img,
.glow-bg-7 img,
.glow-bg-9 img {
    opacity: 1.0 !important;
}

/* Mobile: Hide glow backgrounds */
@media (max-width: 768px) {
    .glow-bg {
        display: none;
    }
}

/* Tablet: Smaller glow backgrounds */
@media (min-width: 769px) and (max-width: 1024px) {
    .glow-bg img {
        width: 300px;
    }

    .glow-bg-1, .glow-bg-3, .glow-bg-5, .glow-bg-7, .glow-bg-9 {
        left: -40px;
    }

    .glow-bg-2, .glow-bg-4, .glow-bg-6, .glow-bg-8, .glow-bg-10 {
        right: -40px;
    }
}
