/**
 * Change Password Form Styles (feature 003)
 * Styling for forced password change on first login
 */

/* Container */
.change-password-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.change-password-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    padding: 2rem;
}

/* Header */
.change-password-header {
    margin-bottom: 2rem;
    text-align: center;
}

.change-password-header h2 {
    color: #2d7a3e;
    margin: 0 0 1rem 0;
    font-size: 1.75rem;
}

.change-password-header .info-message {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    border-radius: 4px;
    color: #856404;
    margin: 0;
    text-align: left;
}

/* Form */
.change-password-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.change-password-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.change-password-form label {
    font-weight: 600;
    color: #333;
    font-size: 0.938rem;
}

.change-password-form input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.change-password-form input:focus {
    outline: none;
    border-color: #2d7a3e;
    box-shadow: 0 0 0 3px rgba(45, 122, 62, 0.1);
}

.change-password-form input:invalid {
    border-color: #dc3545;
}

.change-password-form small {
    color: #666;
    font-size: 0.875rem;
}

/* Form Message */
.form-message {
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.938rem;
    display: none;
}

.form-message--error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.form-message--success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.form-message--info {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.form-actions button {
    flex: 1;
}

/* Responsive Design */
@media (max-width: 576px) {
    .change-password-container {
        padding: 1rem;
    }

    .change-password-card {
        padding: 1.5rem;
    }

    .change-password-header h2 {
        font-size: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }
}
