/* Authentication Pages Styles (Login, Register, Profile, Forgot/Reset Password) */

body.auth-page { 
    font-family: Arial, sans-serif; 
    background: #ecf0f1; 
    margin: 0; 
    padding: 20px;
}

.auth-container { 
    max-width: 450px; 
    margin: 50px auto; 
    background: white; 
    padding: 40px; 
    border-radius: 8px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auth-container h1 { 
    color: #2c3e50; 
    text-align: center; 
    margin-top: 0;
    margin-bottom: 30px;
}

.auth-container h2 {
    color: #2c3e50;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
}

.form-group { 
    margin-bottom: 20px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 5px; 
    font-weight: bold; 
    color: #34495e;
}

.form-group input { 
    width: 100%; 
    padding: 12px; 
    box-sizing: border-box; 
    border: 1px solid #ddd; 
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.form-group select {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-height: 100px;
    resize: vertical;
}

button { 
    width: 100%; 
    padding: 14px; 
    background: #3498db; 
    color: white; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-size: 16px;
    font-weight: bold;
}

button:hover { 
    background: #2980b9; 
}

button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.error { 
    background: #f8d7da; 
    color: #721c24; 
    padding: 12px; 
    border-radius: 4px; 
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.success { 
    background: #d4edda; 
    color: #155724; 
    padding: 12px; 
    border-radius: 4px; 
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.info {
    background: #d1ecf1;
    color: #0c5460;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #bee5eb;
}

.toggle-link { 
    text-align: center; 
    margin-top: 20px; 
    color: #7f8c8d;
}

.toggle-link a { 
    color: #3498db; 
    text-decoration: none;
    font-weight: bold;
}

.toggle-link a:hover { 
    text-decoration: underline; 
}

.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: #3498db;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Profile Page Specific */
.profile-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.profile-section:last-child {
    border-bottom: none;
}

.profile-section h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.profile-info {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.profile-info p {
    margin: 5px 0;
    color: #34495e;
}

.profile-info strong {
    color: #2c3e50;
}

.delete-account {
    background: #e74c3c !important;
}

.delete-account:hover {
    background: #c0392b !important;
}

/* Password Strength Indicator */
.password-strength {
    height: 4px;
    margin-top: 5px;
    border-radius: 2px;
    transition: all 0.3s;
}

.password-strength.weak {
    background: #e74c3c;
    width: 33%;
}

.password-strength.medium {
    background: #f39c12;
    width: 66%;
}

.password-strength.strong {
    background: #27ae60;
    width: 100%;
}

/* Checkbox/Radio Styling */
.checkbox-group,
.radio-group {
    margin-bottom: 15px;
}

.checkbox-group label,
.radio-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
    width: auto;
    margin: 0;
}

/* Help Text */
.help-text {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

/* Required Field Indicator */
label.required::after {
    content: " *";
    color: #e74c3c;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions button {
    flex: 1;
}

.form-actions .btn-secondary {
    background: #95a5a6;
}

.form-actions .btn-secondary:hover {
    background: #7f8c8d;
}

/* Responsive */
@media (max-width: 600px) {
    .auth-container {
        margin: 20px auto;
        padding: 30px 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
}

/* Profile-specific styles */
.profile-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.profile-header h1 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 28px;
}

.profile-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-nav a,
.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.profile-nav a:hover,
.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.profile-nav a:active,
.btn-secondary:active {
    transform: translateY(0);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.stat-card .label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
}

.stat-card .number {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    margin: 30px 0 15px 0;
    color: #2c3e50;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 25px 0 15px 0;
    color: #2c3e50;
}


/* ========================================
   PROFILE PAGE STYLES
   ======================================== */

.profile-page {
    font-family: Arial, sans-serif;
    background: #ecf0f1;
    margin: 0;
    padding: 20px;
}

.profile-page .container {
    max-width: 800px;
    margin: 30px auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.profile-page .header {
    background: #3498db;
    color: white;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-page .header h1 {
    margin: 0;
    font-size: 28px;
}

.profile-page .header .user-info {
    text-align: right;
}

.profile-page .header .user-name {
    font-size: 18px;
    font-weight: bold;
}

.profile-page .header .user-email {
    font-size: 14px;
    opacity: 0.9;
}

.profile-page .nav-buttons {
    background: #2c3e50;
    padding: 15px 30px;
    display: flex;
    gap: 10px;
}

.profile-page .nav-buttons a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    background: #34495e;
    transition: background 0.3s;
}

.profile-page .nav-buttons a:hover {
    background: #4a6278;
}

.profile-page .nav-buttons a.logout {
    background: #e74c3c;
    margin-left: auto;
}

.profile-page .nav-buttons a.logout:hover {
    background: #c0392b;
}

.profile-page .content {
    padding: 30px;
}

.profile-page .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.profile-page .stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e9ecef;
}

.profile-page .stat-card .number {
    font-size: 36px;
    font-weight: bold;
    color: #3498db;
    margin: 10px 0;
}

.profile-page .stat-card .label {
    color: #7f8c8d;
    font-size: 14px;
}

.profile-page h2 {
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    margin-top: 0;
}

.profile-page .form-group {
    margin-bottom: 20px;
}

.profile-page .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #34495e;
}

.profile-page .form-group input {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.profile-page .form-group select {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.profile-page .form-group input:focus,
.profile-page .form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.profile-page .form-group small {
    color: #7f8c8d;
    font-size: 13px;
}

.profile-page .form-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.profile-page .form-section h3 {
    margin-top: 0;
    color: #2c3e50;
}

.profile-page button {
    padding: 12px 30px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.profile-page button:hover {
    background: #2980b9;
}

.profile-page .error {
    color: #e74c3c;
    background: #fadbd8;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.profile-page .message {
    color: #27ae60;
    background: #d5f4e6;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.profile-page .info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-page .stats {
        grid-template-columns: 1fr;
    }
    
    .profile-page .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .profile-page .nav-buttons {
        flex-wrap: wrap;
    }
    
    .profile-page .nav-buttons a.logout {
        margin-left: 0;
    }
}
