/* Giriş Paneli CSS */

.pth-login-panel,
.pth-register-panel,
.pth-user-panel {
    max-width: 500px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.login-container,
.register-container,
.user-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 40px;
    margin: 20px 0;
}

.login-header,
.register-header,
.user-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2,
.register-header h2,
.user-header h2 {
    margin: 0 0 10px 0;
    color: #23282d;
    font-size: 28px;
    font-weight: bold;
}

.login-header p,
.register-header p {
    color: #666;
    margin: 0;
    font-size: 16px;
}

/* Kullanıcı Paneli */
.user-header {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.user-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #0073aa;
}

.user-info h2 {
    margin: 0 0 5px 0;
    color: #23282d;
    font-size: 24px;
}

.user-email {
    color: #666;
    margin: 5px 0;
    font-size: 14px;
}

.user-role {
    color: #0073aa;
    font-weight: bold;
    margin: 5px 0;
    font-size: 14px;
}

.user-company {
    color: #28a745;
    font-weight: bold;
    margin: 5px 0;
    font-size: 14px;
}

/* Form Stilleri */
.login-form,
.register-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #23282d;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

.form-group input[type="password"] {
    letter-spacing: 2px;
}

/* Checkbox Stilleri */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-label a {
    color: #0073aa;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Buton Stilleri */
.form-actions {
    margin-top: 30px;
}

.btn-login,
.btn-register {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover,
.btn-register:hover {
    background: linear-gradient(135deg, #005a87 0%, #004466 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,115,170,0.3);
}

.btn-login:active,
.btn-register:active {
    transform: translateY(0);
}

/* Footer Linkleri */
.login-footer,
.register-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-footer p,
.register-footer p {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
}

.login-footer a,
.register-footer a {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.login-footer a:hover,
.register-footer a:hover {
    text-decoration: underline;
}

/* Demo Hesaplar */
.demo-accounts {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.demo-accounts h3 {
    margin: 0 0 15px 0;
    color: #23282d;
    font-size: 18px;
    text-align: center;
}

.demo-account {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.demo-account:last-child {
    border-bottom: none;
}

.demo-account strong {
    color: #23282d;
    font-size: 14px;
}

.btn-demo-login {
    padding: 8px 16px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-demo-login:hover {
    background: #218838;
}

/* Kullanıcı İstatistikleri */
.user-stats {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Kullanıcı İşlemleri */
.user-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.btn-action {
    padding: 12px 20px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-action:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,115,170,0.3);
    color: white;
    text-decoration: none;
}

.btn-logout {
    padding: 12px 20px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220,53,69,0.3);
}

/* Admin İşlemleri */
.admin-actions {
    margin-top: 30px;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
}

.admin-actions h3 {
    margin: 0 0 15px 0;
    color: #856404;
    font-size: 18px;
}

.admin-actions .btn-action {
    background: #ffc107;
    color: #212529;
}

.admin-actions .btn-action:hover {
    background: #e0a800;
    color: #212529;
}

/* Hata ve Başarı Mesajları */
.message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: bold;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Loading Durumu */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .login-container,
    .register-container,
    .user-container {
        padding: 20px;
        margin: 10px;
    }
    
    .user-header {
        flex-direction: column;
        text-align: center;
    }
    
    .user-actions {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-account {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Animasyonlar */
.login-container,
.register-container,
.user-container {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Efektleri */
.form-group input:hover,
.form-group select:hover {
    border-color: #0073aa;
}

.btn-action:hover {
    transform: translateY(-2px);
}

/* Focus States */
.form-group input:focus,
.form-group select:focus {
    transform: scale(1.02);
}

/* Disabled States */
.btn-login:disabled,
.btn-register:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Print Styles */
@media print {
    .pth-login-panel,
    .pth-register-panel,
    .pth-user-panel {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .btn-action,
    .btn-login,
    .btn-register,
    .btn-logout {
        display: none;
    }
} 