/* ============================================
   FORGOT PASSWORD - SHARED STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.reset-container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reset-header {
    text-align: center;
    margin-bottom: 30px;
}

.reset-header i {
    font-size: 48px;
    color: #4CAF50;
    margin-bottom: 15px;
}

.reset-header h1 {
    font-size: 26px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 700;
}

.reset-header p {
    font-size: 14px;
    color: #666;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 35px;
    position: relative;
    padding: 0 20px;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50px;
    right: 50px;
    height: 3px;
    background: #e0e0e0;
    z-index: 0;
}

.step-progress {
    position: absolute;
    top: 15px;
    left: 50px;
    height: 3px;
    background: #4CAF50;
    z-index: 1;
    transition: width 0.3s ease;
}

.step-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #999;
    transition: all 0.3s ease;
}

.step-item.active .step-circle {
    border-color: #4CAF50;
    background: #4CAF50;
    color: white;
    transform: scale(1.1);
}

.step-item.completed .step-circle {
    border-color: #4CAF50;
    background: #4CAF50;
    color: white;
}

.step-item.completed .step-circle::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.step-item.completed .step-circle span {
    display: none;
}

.step-label {
    font-size: 11px;
    color: #999;
    font-weight: 500;
    text-align: center;
}

.step-item.active .step-label {
    color: #4CAF50;
    font-weight: 600;
}

/* Form Sections */
.form-section {
    display: none;
}

.form-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group input.error {
    border-color: #f44336;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}

/* Messages */
.error-message,
.success-message,
.info-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4CAF50;
}

.info-message {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #2196F3;
}

.error-message.show,
.success-message.show,
.info-message.show {
    display: block;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    margin-bottom: 10px;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Links */
.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #4CAF50;
}

.back-link i {
    margin-right: 6px;
}

/* OTP Input */
.otp-input {
    text-align: center;
    letter-spacing: 8px;
    font-size: 24px;
    font-weight: 700;
}

/* Timer */
.otp-timer {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

.otp-timer.warning {
    color: #f44336;
    font-weight: 600;
}

/* Resend OTP */
.resend-otp {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.resend-otp button {
    background: none;
    border: none;
    color: #4CAF50;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
    padding: 0;
}

.resend-otp button:hover {
    color: #45a049;
}

.resend-otp button:disabled {
    color: #ccc;
    cursor: not-allowed;
    text-decoration: none;
}

/* Success Icon */
.success-icon {
    text-align: center;
    margin-bottom: 20px;
}

.success-icon i {
    font-size: 64px;
    color: #4CAF50;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 576px) {
    .reset-container {
        padding: 30px 20px;
    }

    .reset-header h1 {
        font-size: 22px;
    }

    .step-indicator {
        padding: 0 10px;
    }

    .step-label {
        font-size: 10px;
    }
}

/* Custom colors for different portals */
body.customer-portal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.shopkeeper-portal {
    background: linear-gradient(135deg, #1e8e3e 0%, #0d5c2b 100%);
}

body.delivery-portal {
    background: linear-gradient(135deg, #ff6b00 0%, #c43e00 100%);
}
