
/* Form status message styling */
.form-status-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
}

.form-status-message.error {
    display: block;
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.form-status-message.success {
    display: block;
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.form-status-message.warning {
    display: block;
    background-color: #fff8e1;
    color: #f57f17;
    border-left: 4px solid #f57f17;
}

.form-status-message.info {
    display: block;
    background-color: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #1565c0;
}

/* Form validation styling */
.error-message {
    display: none;
    color: #c62828;
    font-size: 0.85rem;
    margin-top: 5px;
}

.error-message.visible {
    display: block;
}

.styled-input.error {
    border-color: #c62828 !important;
}

.styled-input.valid {
    border-color: #2e7d32 !important;
}

/* Loading state for buttons */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

/* Password input wrapper styling */
.password-input-wrapper {
    position: relative;
}

.toggle-password-visibility {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #757575;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password-visibility:hover {
    color: var(--research-dark);
}

/* Form field validation icons */
.form-group.validated {
    position: relative;
}

.form-group.validated::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 38px;
    right: 12px;
    font-size: 14px;
}

.form-group.validated.error::after {
    content: "\f00d"; /* X mark */
    color: #c62828;
}

.form-group.validated.valid::after {
    content: "\f00c"; /* Check mark */
    color: #2e7d32;
}

/* Form step indicators */
.form-steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.form-steps-indicator::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e0e0e0;
    z-index: -1;
}

.step-indicator {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #757575;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
}

.step-indicator.active {
    background-color: var(--research-accent);
    color: white;
}

.step-indicator.completed {
    background-color: #2e7d32;
    color: white;
}

.step-indicator.completed::after {
    content: "\f00c"; /* Check mark */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}
