/**
 * PATIOVISTA Auth Styles
 * Login, Registrierung, Passwort vergessen
 * Version: 1.1
 * 
 * Verwendet globale Variablen aus styles.css (:root Block)
 */

/* ========================================
   AUTH CONTAINER
   ======================================== */
   .auth-container {
    max-width: 1000px;
    margin: 40px auto 80px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ========================================
   AUTH BOX (Form Container)
   ======================================== */
.auth-box {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 40px;
}

.auth-header {
    margin-bottom: 32px;
    text-align: center;
}

.auth-header h1 {
    font-family: 'Cormorant', Georgia, serif;
    font-size: 32px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.auth-header p {
    font-size: 14px;
    color: #6B6B6B;
    line-height: 1.6;
}

/* ========================================
   AUTH FORM
   ======================================== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form .form-label {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    font-size: 12px;
    color: #6B6B6B;
    text-decoration: none;
}

.forgot-link:hover {
    color: #d4af37;
    text-decoration: underline;
}

.auth-form .form-input {
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form .form-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.auth-form .form-input::placeholder {
    color: #aaa;
}

/* Password Input with Toggle */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #6B6B6B;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #1a1a1a;
}

/* Checkbox */
.auth-form .checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-form .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #d4af37;
}

.auth-form .checkbox-group label {
    font-size: 14px;
    color: #6B6B6B;
    cursor: pointer;
}

/* Error Message */
.error-message {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 13px;
}

/* Success Message */
.success-message {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 13px;
}

/* Submit Button */
.btn-full {
    width: 100%;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37, #c5a032);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #c5a032, #b8972e);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    border-color: #d4af37;
    color: #d4af37;
}

/* Loading Spinner */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================================
   AUTH DIVIDER
   ======================================== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider span {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   AUTH ALTERNATE (Register/Login Link)
   ======================================== */
.auth-alternate {
    text-align: center;
}

.auth-alternate p {
    font-size: 14px;
    color: #6B6B6B;
    margin-bottom: 16px;
}

/* ========================================
   AUTH BENEFITS (Sidebar)
   ======================================== */
.auth-benefits {
    padding: 40px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
}

.auth-benefits h3 {
    font-family: 'Cormorant', Georgia, serif;
    font-size: 24px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefits-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.benefit-icon {
    width: 44px;
    height: 44px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.benefit-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.benefit-text strong {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.benefit-text span {
    font-size: 13px;
    color: #6B6B6B;
}

/* ========================================
   LOGOUT BOX
   ======================================== */
.logout-box {
    text-align: center;
    max-width: 400px;
    margin: 60px auto;
}

.logout-icon {
    width: 80px;
    height: 80px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
}

.logout-box h1 {
    font-family: 'Cormorant', Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 12px;
}

.logout-box p {
    color: #6B6B6B;
    margin-bottom: 32px;
}

.logout-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.logout-actions .btn {
    padding: 14px 28px;
}

/* ========================================
   PASSWORD STRENGTH (für Registrierung)
   ======================================== */
.password-requirements {
    margin-top: 8px;
}

.password-requirements p {
    font-size: 12px;
    color: #6B6B6B;
    margin-bottom: 8px;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.requirement.met {
    color: #2e7d32;
}

.requirement-icon {
    width: 16px;
    height: 16px;
    border: 1px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.requirement.met .requirement-icon {
    background: #2e7d32;
    border-color: #2e7d32;
    color: white;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 500px;
    }
    
    .auth-benefits {
        order: 1;
    }
}

@media (max-width: 480px) {
    .auth-box,
    .auth-benefits {
        padding: 24px;
    }
    
    .auth-header h1 {
        font-size: 26px;
    }
    
    .logout-actions {
        flex-direction: column;
    }
    
    .logout-actions .btn {
        width: 100%;
    }
}