/* Reset Password Page Styles */

/* Container */
.reset-password-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

/* Back Button */
.back-btn {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: opacity 0.3s ease;
}

.back-btn:hover {
    opacity: 0.9;
    color: white;
}

/* Reset Card */
.reset-card {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 2.5rem;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Header */
.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.card-header i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.card-header h1 {
    font-size: 1.75rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.card-header p {
    color: #666;
    margin: 0;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    border-color: #667eea;
    outline: none;
}

/* Password Input Container */
.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #333;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.75rem;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: #e53e3e;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    background: #e53e3e;
    width: 25%;
}

.strength-fill.fair {
    background: #fd7e14;
    width: 50%;
}

.strength-fill.good {
    background: #ffc107;
    width: 75%;
}

.strength-fill.strong {
    background: #28a745;
    width: 100%;
}

.strength-text {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.strength-text.weak {
    color: #e53e3e;
}

.strength-text.fair {
    color: #fd7e14;
}

.strength-text.good {
    color: #ffc107;
}

.strength-text.strong {
    color: #28a745;
}

/* Password Requirements */
.password-requirements {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.password-requirements h4 {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #333;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    padding: 0.25rem 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.password-requirements li i {
    color: #e2e8f0;
    font-size: 0.7rem;
    transition: color 0.3s ease;
}

.password-requirements li.met i {
    color: #28a745;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-submit.loading {
    pointer-events: none;
}

.btn-submit.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Info Message */
.info-message {
    padding: 1rem;
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    border-radius: 6px;
    color: #0c5460;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-message i {
    color: #17a2b8;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.info-message p {
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.info-message p:last-child {
    margin-bottom: 0;
}

/* Success Message */
.success-message {
    padding: 1.5rem;
    background: #d4edda;
    border-left: 4px solid #28a745;
    border-radius: 6px;
    color: #155724;
    text-align: center;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.success-message i {
    font-size: 2rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.success-message h3 {
    margin: 0 0 1rem;
    color: #155724;
}

.success-message p {
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.success-message p:last-of-type {
    margin-bottom: 1.5rem;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #155724;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid #28a745;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-link:hover {
    background: #28a745;
    color: white;
}

/* Help Section */
.help-section {
    max-width: 500px;
    margin: 2rem auto 0;
    text-align: center;
    color: white;
}

.help-section h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.help-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.help-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.help-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: toastSlideIn 0.3s ease-out;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    border-left: 4px solid #28a745;
}

.toast.error {
    border-left: 4px solid #dc3545;
}

.toast.info {
    border-left: 4px solid #17a2b8;
}

.toast i {
    font-size: 1.2rem;
}

.toast.success i {
    color: #28a745;
}

.toast.error i {
    color: #dc3545;
}

.toast.info i {
    color: #17a2b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reset-password-container {
        padding: 1rem;
    }
    
    .reset-card {
        padding: 1.5rem;
        margin: 0;
    }
    
    .tab-btn {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
    
    .help-links {
        flex-direction: column;
        align-items: center;
    }
    
    .help-links a {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .toast {
        min-width: auto;
        width: calc(100vw - 2rem);
        margin: 0 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .card-header i {
        font-size: 2.5rem;
    }
    
    .card-header h1 {
        font-size: 1.5rem;
    }
    
    .tab-navigation {
        flex-direction: column;
        gap: 0;
    }
    
    .tab-btn {
        border-bottom: 1px solid #e2e8f0;
        border-radius: 0;
    }
    
    .tab-btn:last-child {
        border-bottom: none;
    }
    
    .tab-btn.active {
        background: #f8f9fa;
        border-left: 4px solid #667eea;
        border-bottom-color: #e2e8f0;
    }
}
