/* assets/css/pages/register.css */

/* Auth Page Body Background */
.auth-body {
    background: var(--color-bg-canvas);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Base Card Style */
.auth-card {
    width: 100%;
    max-width: 450px;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
}

/* Header Section */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}

.auth-title {
    font-size: 1.25rem;
    margin-top: 1rem;
    color: var(--text-main);
    font-weight: 700;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Meldungen (Erfolg & Fehler) */
.auth-success-box {
    background: color-mix(in srgb, var(--color-green), transparent 85%);
    color: var(--color-ink);
    padding: 1rem;
    border: var(--brutal-border);
    box-shadow: var(--brutal-shadow);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.auth-error-box {
    background: color-mix(in srgb, var(--color-coral), transparent 85%);
    color: var(--color-ink);
    padding: 1rem;
    border: var(--brutal-border);
    box-shadow: var(--brutal-shadow);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

/* Form Styles */
.auth-form-group {
    margin-bottom: 1rem;
}

.auth-form-group.mb-large {
    margin-bottom: 1.5rem;
}

.auth-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.auth-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.auth-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 16px;
    /* Verhindert iOS-Safari Auto-Zoom bei Fokus */
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.auth-input-password {
    padding-right: 2.5rem;
}

.auth-password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.75rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    touch-action: manipulation;
}

.auth-password-toggle:hover {
    color: var(--text-main);
}

/* Verstecke native Browser-Passwort-Augen (Edge/Safari) */
.auth-input::-ms-reveal,
.auth-input::-ms-clear {
    display: none;
}

.auth-input::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    position: absolute;
    right: 0;
}

/* Privacy Note */
.auth-privacy-note {
    background: var(--bg-surface-2);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Buttons */
.auth-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem;
}

/* Footer Links */
.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Cleanup Classes */
.auth-success-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.auth-link-bold {
    font-weight: 700;
    text-decoration: underline;
}

.auth-privacy-icon {
    color: var(--primary-color);
    vertical-align: middle;
    margin-right: 5px;
}
