/**
 * Password Reset Flow - Stylesheet
 */

body.task-login {
    background: #f4f4f4;
}

.password-reset-container {
    max-width: 500px;
    margin: 100px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.password-reset-container h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
}

.password-reset-container p {
    margin-bottom: 30px;
    color: #666;
    line-height: 1.6;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #37beff;
    box-shadow: 0 0 0 3px rgba(55,190,255,0.1);
}

.form-text {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #666;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #37beff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #2ba5e0;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-primary:active {
    transform: scale(0.98);
}

.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: none;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

.loading .spinner {
    display: inline-block;
}

.back-to-login {
    margin-top: 20px;
    text-align: center;
}

.back-to-login a {
    color: #37beff;
    text-decoration: none;
    font-size: 14px;
}

.back-to-login a:hover {
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .password-reset-container {
        margin: 40px 20px !important;
        padding: 30px 20px !important;
    }

    .password-reset-container h2 {
        font-size: 20px !important;
    }
}
