/* ========================================
   Password Reset Pages Styles
   ======================================== */

/* CSS Variables */
:root {
    --primary: #E88A30;
    --primary-50: #FEF3E7;
    --primary-100: #FDEAD3;
    --primary-600: #DC7A1F;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-500: #6B7280;
    --gray-700: #374151;
    --gray-900: #111827;
}

/* ========================================
   Container & Card Layout
   ======================================== */

.forgot-password-container,
.reset-password-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--gray-50);
}

.forgot-password-card,
.reset-password-card {
    position: relative;
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 28rem;
    overflow: hidden;
}

/* ========================================
   Header Section
   ======================================== */

.forgot-password-header,
.reset-password-header {
    position: relative;
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    text-align: center;
}

.forgot-password-icon,
.reset-password-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.forgot-password-title,
.reset-password-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    font-family: 'SF Pro Text', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.forgot-password-subtitle,
.reset-password-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-family: 'SF Pro Text', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========================================
   Body Section
   ======================================== */

.forgot-password-body,
.reset-password-body {
    padding: 2rem;
}

/* ========================================
   Form Elements
   ======================================== */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.95rem;
    font-family: 'SF Pro Text', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.input-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    color: var(--gray-900);
    font-size: 0.95rem;
    font-family: 'SF Pro Text', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.2s ease;
    outline: none;
}

.input-group .form-input {
    padding-right: 3rem;
}

.form-input::placeholder {
    color: var(--gray-500);
}

.form-input:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 138, 48, 0.1);
    transform: translateY(-1px);
}

.input-group-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.input-group-btn:hover {
    color: var(--gray-700);
}

.form-hint {
    color: var(--gray-500);
    font-size: 0.875rem;
    font-family: 'SF Pro Text', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========================================
   Validation & Error Messages
   ======================================== */

.text-danger {
    color: #ef4444;
    font-size: 0.875rem;
    display: block;
}

.forgot-password-body .text-danger {
    margin-top: 0.25rem;
}

/* ========================================
   Password Strength Indicator
   ======================================== */

.password-strength {
    margin-bottom: 1rem;
    display: none;
}

.password-strength-bar {
    height: 0.5rem;
    background-color: var(--gray-200);
    border-radius: 0.25rem;
    overflow: hidden;
    position: relative;
}

.password-strength-fill {
    height: 100%;
    transition: width 0.3s, background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.strength-weak {
    background-color: #ef4444;
}

.strength-medium {
    background-color: #f59e0b;
}

.strength-good {
    background-color: #3b82f6;
}

.strength-strong {
    background-color: #10b981;
}

/* ========================================
   Buttons
   ======================================== */

.btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'SF Pro Text', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(232, 138, 48, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 138, 48, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: scale(0.95);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-success {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'SF Pro Text', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(232, 138, 48, 0.3);
}

.btn-success:hover:not(:disabled) {
    background: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 138, 48, 0.4);
}

.btn-success:active:not(:disabled) {
    transform: scale(0.95);
}

.btn-success:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    font-family: 'SF Pro Text', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-top: 1rem;
    transition: color 0.2s;
}

.btn-link:hover {
    color: var(--primary-600);
    text-decoration: underline;
}

/* ========================================
   Alert Messages
   ======================================== */

.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-family: 'SF Pro Text', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #9ae6b4;
    color: #15803d;
}

.alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fc8181;
    color: #991b1b;
}

.alert-info {
    background-color: var(--primary-50);
    border: 1px solid var(--primary-100);
    color: #6f3b0f;
}

.forgot-password-body .alert-info {
    text-align: center;
}

.reset-password-body .alert-info {
    /* No special text alignment for reset password info alerts */
}

/* ========================================
   Utility Classes
   ======================================== */

.text-center {
    text-align: center;
}

.icon-md {
    width: 1.25rem;
    height: 1.25rem;
}

/* ========================================
   Animations
   ======================================== */

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}
