/**
 * Forgot Password Page Styles
 * RISP Platform
 */

/* Container */
.forgot-container {
    display: flex;
    min-height: 100vh;
    background: #F6F8E2;
}

/* Left Panel */
.forgot-left {
    flex: 0 0 400px;
    background: linear-gradient(to right, #F6F8E2 0%, #E8E6D8 50%, #E0DDCA 100%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #3C3D42;
}

.forgot-brand {
    margin-bottom: 3rem;
}

.forgot-brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem 0;
    font-family: 'Poppins', sans-serif;
}

.forgot-brand-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #5e5e63;
}

.forgot-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0.75rem;
    border: 1px solid rgba(156, 205, 98, 0.2);
}

.info-item svg {
    flex-shrink: 0;
    color: #9CCD62;
}

.info-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #3C3D42;
}

.info-item p {
    font-size: 0.9375rem;
    color: #5e5e63;
    line-height: 1.5;
}

/* Right Panel */
.forgot-right {
    flex: 1;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #E0DDCA 0%, #D5D2BF 50%, #C8C5B4 100%);
}

.forgot-form-container {
    width: 100%;
    max-width: 500px;
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

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

.forgot-title {
    font-size: 2rem;
    font-weight: 700;
    color: #3C3D42;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.forgot-subtitle {
    color: #5e5e63;
    font-size: 1rem;
}

/* Form Elements */
.forgot-form {
    margin-top: 2rem;
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #3C3D42;
    margin-bottom: 0.5rem;
}

.input-with-icon {
    position: relative;
}

.input-with-icon svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #7e7e82;
}

.input-with-icon .form-input {
    padding-left: 3rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #E0DDCA;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    color: #3C3D42;
    background: white;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: #9CCD62;
    box-shadow: 0 0 0 3px rgba(156, 205, 98, 0.1);
}

.form-input::placeholder {
    color: #9e9ea3;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #9CCD62 0%, #7fb34d 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #7fb34d 0%, #65903d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(156, 205, 98, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #E0DDCA;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #5e5e63;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: #9CCD62;
}

/* Alerts */
.forgot-alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideDown 0.3s ease-out;
}

.forgot-alert svg {
    flex-shrink: 0;
}

.forgot-alert-success {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.forgot-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .forgot-left {
        flex: 0 0 350px;
    }
}

@media (max-width: 768px) {
    .forgot-container {
        flex-direction: column;
    }
    
    .forgot-left {
        flex: none;
        padding: 2rem;
    }
    
    .forgot-brand-title {
        font-size: 2rem;
    }
    
    .forgot-info {
        display: none;
    }
    
    .forgot-form-container {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .forgot-form-container {
        padding: 1.5rem;
    }
    
    .forgot-title {
        font-size: 1.5rem;
    }
}

/* Reset Password Specific Styles */
.forgot-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #9CCD62 0%, #7fb34d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.forgot-form-group {
    margin-bottom: 1.5rem;
}

.forgot-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #3C3D42;
    margin-bottom: 0.5rem;
}

.forgot-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #E0DDCA;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    color: #3C3D42;
    background: white;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.forgot-input:focus {
    outline: none;
    border-color: #9CCD62;
    box-shadow: 0 0 0 3px rgba(156, 205, 98, 0.1);
}

.forgot-input::placeholder {
    color: #9e9ea3;
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #7e7e82;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #9CCD62;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.hidden {
    display: none;
}

.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    border-radius: 2px;
    background: #E0DDCA;
    transition: all 0.3s;
}

.password-strength.weak {
    width: 33%;
    background: #ef4444;
}

.password-strength.weak::after {
    content: 'Weak';
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 500;
}

.password-strength.medium {
    width: 66%;
    background: #f59e0b;
}

.password-strength.medium::after {
    content: 'Medium';
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #f59e0b;
    font-weight: 500;
}

.password-strength.strong {
    width: 100%;
    background: #10b981;
}

.password-strength.strong::after {
    content: 'Strong';
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 500;
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #7e7e82;
    line-height: 1.5;
}

.forgot-submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #9CCD62 0%, #7fb34d 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-family: 'Inter', sans-serif;
}

.forgot-submit-btn:hover {
    background: linear-gradient(135deg, #7fb34d 0%, #65903d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(156, 205, 98, 0.3);
}

.forgot-submit-btn:active {
    transform: translateY(0);
}

.forgot-back {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #E0DDCA;
}

.forgot-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #5e5e63;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-back-link:hover {
    color: #9CCD62;
}

.forgot-alert-success svg,
.forgot-alert-error svg {
    width: 20px;
    height: 20px;
}
