/* Reset Password page specific styles */

/* Common section styles */
.reset-section, .loading-section, .error-section, .success-section {
    min-height: 80vh;
    padding: 150px 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container styles */
.reset-container, .loading-container, .error-container, .success-container {
    max-width: 550px;
    width: 100%;
    margin: 0 auto;
    padding: 40px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Loading spinner */
.loading-spinner {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    border: 5px solid rgba(107, 70, 255, 0.2);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 30px;
    color: var(--text);
    font-weight: 500;
}

/* Error section */
.error-icon, .success-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.error-icon {
    color: #f44336;
}

.success-icon {
    color: var(--secondary);
}

.error-title, .success-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
}

.error-message, .success-message {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 18px;
}

.error-actions, .success-actions {
    margin-top: 20px;
}

/* Form styles */
.reset-form {
    text-align: left;
    margin-top: 30px;
}

.user-info {
    background-color: var(--gray);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray);
    border-radius: 10px;
    background-color: var(--gray);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107, 70, 255, 0.2);
    transform: translateY(-3px);
}

/* Password input with toggle visibility */
.password-input-group {
    position: relative;
    width: 100%;
}

.password-input-group input {
    padding-right: 45px; /* Space for the eye icon */
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.toggle-password:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

/* Password strength meter */
.password-strength {
    margin: -15px 0 25px 0;
}

.strength-meter {
    height: 4px;
    background-color: #eee;
    border-radius: 2px;
    margin-bottom: 10px;
    overflow: hidden;
}

.strength-meter-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.strength-meter-bar[data-strength="0"] {
    width: 10%;
    background-color: #f44336; /* Very weak - red */
}

.strength-meter-bar[data-strength="1"] {
    width: 25%;
    background-color: #ff9800; /* Weak - orange */
}

.strength-meter-bar[data-strength="2"] {
    width: 50%;
    background-color: #ffeb3b; /* Medium - yellow */
}

.strength-meter-bar[data-strength="3"] {
    width: 75%;
    background-color: #4caf50; /* Strong - light green */
}

.strength-meter-bar[data-strength="4"] {
    width: 100%;
    background-color: #16df9e; /* Very strong - green (secondary color) */
}

.strength-text {
    font-size: 12px;
    color: var(--text-light);
}

/* Form message */
.form-message {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 8px;
    display: none;
}

.form-message.error {
    background-color: rgba(255, 0, 0, 0.1);
    color: #d32f2f;
    display: block;
}

.form-message.success {
    background-color: rgba(22, 223, 158, 0.1);
    color: var(--secondary);
    display: block;
}

.form-message.warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ff9800;
    display: block;
}

/* Form actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

/* Reset button */
.reset-btn {
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    border: none;
    padding: 15px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(107, 70, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.reset-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.reset-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(107, 70, 255, 0.5);
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
}

.reset-btn:hover i {
    transform: translateX(3px);
}

/* Password requirements */
.password-requirements {
    margin-top: 10px;
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.5;
}

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

.password-requirements li {
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.password-requirements li::before {
    content: "•";
    position: absolute;
    left: 5px;
    color: var(--text-light);
}

.password-requirements li.met {
    color: var(--secondary);
}

.password-requirements li.met::before {
    content: "✓";
    color: var(--secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .reset-container, .loading-container, .error-container, .success-container {
        padding: 30px 20px;
        width: 90%;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-actions a, 
    .form-actions button {
        width: 100%;
    }
}
