/* Account Authentication Styles */

.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.auth-header p {
    color: #7f8c8d;
    margin: 0;
}

.auth-errors {
    margin-bottom: 1rem;
}

.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.form-input {
    padding: 0.75rem 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

.form-actions {
    margin-top: 0.5rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-danger {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
    border-color: #c0392b;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e1e8ed;
}

.auth-link {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-link-primary {
    color: #e74c3c;
    font-weight: 500;
}

.auth-divider {
    color: #7f8c8d;
    margin: 1rem 0 0.5rem 0;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1rem;
    }

    .auth-content {
        padding: 1.5rem;
    }
}

/* Profile Edit Styles */
.profile-edit-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.profile-edit-header {
    margin-bottom: 2rem;
}

.profile-edit-header h1 {
    color: var(--neutral-dark);
    margin-bottom: 0.5rem;
}

.profile-edit-header p {
    color: var(--support-2);
}

.profile-edit-container .form-group {
    margin-bottom: 1.5rem;
}

.profile-edit-container .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--neutral-dark);
    font-weight: 500;
}

.profile-edit-container .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.profile-edit-container .form-input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-help-text {
    font-size: 0.875rem;
    color: var(--support-2);
    margin-top: 0.25rem;
}

.form-errors {
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.form-errors ul {
    margin: 0;
    padding-left: 1.5rem;
}

.profile-edit-container .form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ========================================
   BASE BUTTON STYLES
   ========================================
   These styles ensure consistent button appearance
   across all users app pages, whether using <button> or <a> elements.
   */

a.btn,
button.btn {
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    border: none;
    font-weight: 500;
}

a.btn {
    display: inline-flex;
}

/* Primary Button */
.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--support-2);
    color: white;
}

/* Secondary Button */
.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    color: white;
}

/* Danger Button */
.btn-danger {
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    color: white;
}

/* Full Width Button */
.btn-full {
    width: 100%;
    justify-content: center;
}

@media (max-width: 768px) {
    .profile-edit-container {
        padding: 1rem;
    }

    .profile-edit-container .form-actions {
        flex-direction: column;
    }

    .profile-edit-container .form-actions .btn {
        width: 100%;
    }
}
