/**
 * Reset Password CSS
 * This file contains the CSS styles for the reset password page
 */

/* Message Alert Styles */
.message-container {
    position: fixed;
    top: 120px;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    z-index: 99999;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    background: transparent;
    pointer-events: none;
}

.message-container .message {
    pointer-events: auto;
}

.message {
    padding: 16px 24px;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    animation: messageFadeIn 0.3s ease-out;
    width: auto;
    max-width: 90%;
}

.message.error {
    background-color: #fef0f0;
    border: 1px solid #fde2e2;
    color: #f56c6c;
}

.message.success {
    background-color: #f0f9eb;
    border: 1px solid #e1f3d8;
    color: #67c23a;
}

.message.info {
    background-color: #ecf5ff;
    border: 1px solid #d9ecff;
    color: #409eff;
}

.message.warning {
    background-color: #fdf6ec;
    border: 1px solid #faecd8;
    color: #e6a23c;
}

.message-icon {
    margin-right: 10px;
    font-size: 16px;
}

.message-content {
    flex: 1;
    font-size: 14px;
}

.message-close {
    margin-left: 10px;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.message-close:hover {
    opacity: 1;
}

@keyframes messageFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes messageFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Reset Password Section */
.reset-password-section {
    background-color: #ffffff;
    padding: 20px 20px;
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .reset-password-section {
        padding: 130px 40px 130px;
    }
}

.reset-password-container {
    max-width: 100%;
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Section Styles */
.section-title {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    color: #111827;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 36px;
        margin-bottom: 20px;
    }
}

.section-description {
    font-size: 14px;
    color: rgba(28, 28, 28, 0.7);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .section-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
}

/* Form Styles */
.reset-password-form {
    width: 100%;
    max-width: 840px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    width: 100%;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-align: left;
}

@media (min-width: 768px) {
    .form-label {
        font-size: 16px;
    }
}

.required {
    color: #ef4444;
}

.form-control {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    opacity: 1;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #BE930B;
    box-shadow: 0 0 0 2px #BE930B;
}

/* Verification Code Section */
.verification-code-input-container {
    display: flex;
    gap: 16px;
    align-items: end;
}

.verification-code-container {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.verification-code-container .form-control {
    flex: 1;
}

.send-verification-code-btn {
    padding: 12px 16px;
    font-size: 14px;
    white-space: nowrap;
}

.send-code-btn {
    padding: 12px 24px;
    font-size: 14px;
    white-space: nowrap;
    background-color: #6b7280;
    color: #ffffff;
    border: 1px solid #6b7280;
}

.send-code-btn:hover:not(:disabled) {
    background-color: #4b5563;
    border-color: #4b5563;
}

.send-code-btn:disabled {
    background-color: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
}

/* Form Actions */
.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    font-size: 14px;
}

.back-link-container {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.back-link {
    color: #BE930B;
    text-decoration: underline;
    transition: color 0.2s ease-in-out;
}

.back-link:hover {
    color: #a67f0a;
}

/* Buttons */
.btn {
    padding: 10px 32px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    cursor: pointer;
    font-size: 14px;
}

@media (min-width: 768px) {
    .btn {
        font-size: 16px;
    }
}

.btn-primary {
    background-color: #BE930B;
    color: #ffffff;
    border: 1px solid #BE930B;
    width: 133px;
    height: 48px;
}

.btn-primary:hover {
    background-color: #d4a612;
    border-color: #d4a612;
}
