/* ========================================
   AUTHENTICATION PAGES STYLING
   ======================================== */

/* General Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    animation: fadeInUp 0.5s ease-out;
}

.auth-card-wide {
    max-width: 700px;
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    height: 50px;
    margin-bottom: 20px;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Form Styling */
.auth-form {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input.is-invalid,
.form-select.is-invalid {
    border-color: #ef4444;
}

.invalid-feedback {
    display: block;
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 4px;
}

.form-text-muted {
    display: block;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Checkbox */
.form-group-checkbox {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4b5563;
}

.checkbox-input {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: #0477e0;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-submit:hover {
    transform: translateY(-2px);
    background: #035fb3;
    box-shadow: 0 1px 1px #3e3e3e;
}

.btn-submit:active {
    transform: translateY(0);
}

/* Divider */
.auth-divider {
    text-align: center;
    position: relative;
    margin: 24px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    position: relative;
    background: white;
    padding: 0 16px;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Footer */
.auth-footer {
    text-align: center;
}

.auth-footer p {
    color: #6b7280;
    margin: 0;
}

.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert ul {
    padding-left: 20px;
    margin: 8px 0 0 0;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   PROFILE PAGE STYLING
   ======================================== */

.profile-container {
    min-height: 100vh;
    background: #f4f6f9;
    padding: 80px 20px 40px;
}

.profile-card {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

/* Profile Header */
.profile-header {
    text-align: center;
    padding-bottom: 32px;
    border-bottom: 2px solid #f3f4f6;
    margin-bottom: 32px;
}

.profile-avatar {
    font-size: 80px;
    color: #667eea;
    margin-bottom: 16px;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.profile-witel {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

/* Profile Form */
.profile-form {
    margin-top: 0;
}

.form-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.section-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Profile Actions */
.profile-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 2px solid #f3f4f6;
}

.btn-cancel {
    padding: 12px 24px;
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-cancel:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 30px 24px;
    }

    .profile-card {
        padding: 30px 20px;
    }

    .profile-actions {
        flex-direction: column;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f1f1f1;
}

.info-label {
    font-weight: 600;
    color: #374151;
}

.info-value {
    flex-grow: 1;
    color: #4b5563;
    margin-left: 20px;
}

.edit-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #667eea;
    font-size: 18px;
    padding: 4px;
}
