/* Auth Page Layout */
.auth-page {
    min-height: calc(100vh - 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f5f2ec 0%, #ebe5da 100%);
}

.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

.auth-card.wide {
    max-width: 500px;
}

.auth-header {
    background: linear-gradient(135deg, var(--gruen-dunkel), var(--gruen));
    padding: 1.25rem 2rem;
    text-align: center;
}

.auth-header h1 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold);
    font-size: 1.5rem;
    margin: 0;
}

.auth-header p {
    color: var(--gold-light);
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
}

.auth-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

/* Auth Forms */
.auth-page .form-group {
    margin-bottom: 0.75rem;
}

.auth-page .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gruen-dunkel);
}

.auth-page .form-group label .required {
    color: #dc3545;
}

.auth-page .form-group input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--beige);
    border-radius: 6px;
    font-size: 1rem;
}

.auth-page .form-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.2);
}

.form-help {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Auth Alerts */
.auth-alert {
    padding: 0.6rem 0.85rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.auth-alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-alert.info {
    background: #e8f4f8;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.auth-alert ul {
    margin: 0;
    padding-left: 1.5rem;
}

/* Auth Button */
.btn-auth {
    width: 100%;
    padding: 0.7rem;
    background: var(--gold);
    color: var(--gruen-dunkel);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-auth:hover {
    background: var(--gold-dark);
}

/* Auth Links */
.auth-links {
    margin-top: 0.75rem;
    text-align: center;
}

.auth-links a {
    color: var(--gold-dark);
    text-decoration: none;
}

.auth-links a:hover {
    color: var(--gruen);
    text-decoration: underline;
}

.auth-divider {
    text-align: center;
    margin: 0.6rem 0;
    color: #999;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--beige);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.resend-link {
    display: block;
    margin-top: 0.5rem;
}

/* Success State (registration) */
.success-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
}

/* Password Strength Indicator */
.password-strength {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.password-strength.visible {
    display: flex;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--beige);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: all 0.3s;
}

.strength-text {
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 65px;
}

.password-requirements {
    display: none;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    margin-top: 0.4rem;
    font-size: 0.7rem;
}

.password-requirements.visible {
    display: flex;
}

.password-requirements .req {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #999;
    transition: color 0.2s;
}

.password-requirements .req i {
    font-size: 0.75rem;
}

.password-requirements .req.valid {
    color: #28a745;
}

.password-requirements .req.valid i::before {
    content: "\ea5e";
}

.password-match {
    margin-top: 0.4rem;
    font-size: 0.7rem;
    font-weight: 500;
}

.password-match.match {
    color: #28a745;
}

.password-match.no-match {
    color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-page {
        padding: 1.5rem 1rem;
        min-height: calc(100vh - 200px);
        align-items: flex-start;
        padding-top: 1.5rem;
    }

    .auth-card {
        border-radius: 10px;
    }

    .auth-header {
        padding: 1rem 1.25rem;
    }

    .auth-header h1 {
        font-size: 1.3rem;
    }

    .auth-header p {
        font-size: 0.8rem;
    }

    .auth-body {
        padding: 1rem 1.25rem 1.25rem;
    }

    .auth-page .form-group {
        margin-bottom: 0.65rem;
    }

    .auth-page .form-group label {
        margin-bottom: 0.35rem;
        font-size: 0.88rem;
    }

    .auth-page .form-group input {
        padding: 0.55rem 0.75rem;
        font-size: 0.9rem;
    }

    .form-help {
        font-size: 0.75rem;
    }

    .auth-alert {
        font-size: 0.82rem;
        padding: 0.5rem 0.75rem;
    }

    .btn-auth {
        padding: 0.65rem;
        font-size: 0.95rem;
    }

    .auth-links {
        font-size: 0.85rem;
    }

    .auth-divider {
        font-size: 0.82rem;
    }
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .password-requirements {
        grid-template-columns: 1fr;
    }
}
