/**
 * Auth Module - Styles
 * מודול אימות - עיצובים
 */

/* משתנים גלובליים */
:root {
    --primary: #2C5282;
    --primary-light: #3182CE;
    --success: #38A169;
    --warning: #D69E2E;
    --danger: #E53E3E;
    --bg-primary: #F7FAFC;
    --text-primary: #2D3748;
    --text-secondary: #718096;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* מודול האימות - עיצוב כללי */
.auth-module {
    min-height: 100vh;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    position: relative;
}

/* כרטיס אימות */
.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 450px;
    width: 100%;
    overflow: hidden;
}

.auth-card-wide {
    max-width: 700px;
}

/* כותרת */
.auth-header {
    text-align: center;
    padding: 40px 30px 30px 30px;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
}

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-header p {
    color: #cbd5e0;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.auth-gradient-line {
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981, #f59e0b, #ec4899);
    margin-top: 20px;
    border-radius: 10px;
}

/* טופס */
.auth-form {
    padding: 40px 35px;
}

/* שדות קלט */
.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control {
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.3s ease;
    direction: rtl;
    text-align: right;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #cbd5e0;
    direction: ltr;
    text-align: left;
    font-style: italic;
}

/* שדה עם אייקון */
.input-with-icon {
    position: relative;
}

.input-with-icon .form-control {
    padding-left: 45px;
    padding-right: 15px;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 1;
}

/* כפתורים */
.auth-button {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-button-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(44, 82, 130, 0.3);
}

.auth-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 82, 130, 0.4);
}

.auth-button-secondary {
    background: linear-gradient(135deg, var(--success) 0%, #2f855a 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(56, 161, 105, 0.3);
}

.auth-button-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 161, 105, 0.4);
}

/* קישורים */
.auth-links {
    margin-top: 25px;
    text-align: center;
}

.auth-links p {
    margin: 10px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* הודעות */
.auth-message {
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 25px;
    text-align: center;
}

.auth-message h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.auth-message p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.auth-message-success {
    background: #f0fff4;
    border: 2px solid var(--success);
    color: #22543d;
}

.auth-message-error {
    background: #fff5f5;
    border: 2px solid var(--danger);
    color: #742a2a;
}

/* Footer */
.auth-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 0.9rem;
}

/* בחירת סוג משתמש */
.register-choice-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 30px;
}

.choice-card {
    background: white;
    border: 3px solid var(--border);
    border-radius: var(--radius-md);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.choice-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.choice-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.choice-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.choice-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* חוזק סיסמה */
.password-strength {
    height: 4px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.password-strength-weak {
    width: 33%;
    background: var(--danger);
}

.password-strength-medium {
    width: 66%;
    background: var(--warning);
}

.password-strength-strong {
    width: 100%;
    background: var(--success);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        margin: 20px;
    }
    
    .auth-form {
        padding: 30px 25px;
    }
    
    .register-choice-cards {
        grid-template-columns: 1fr;
    }
    
    .auth-header h1 {
        font-size: 2rem;
    }
}

/* דפים פרטיים */
.user-dashboard {
    padding: 20px 0;
}

.user-welcome {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.user-stat-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    border-top: 4px solid var(--primary);
}

.user-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.user-stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.action-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.action-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.action-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}