/* Form Enhancement Styles */

/* Improved input field visibility */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
select,
textarea {
    color: #1f2937 !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
}

/* Glass input override for better visibility */
.glass-input {
    color: #ffffff !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 400 !important;
}

/* Password field container */
.password-field-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: rgba(255, 255, 255, 1);
}

.password-toggle-btn i {
    font-size: 1.1rem;
}

/* Error message styling */
.error-message {
    background: rgba(239, 68, 68, 0.15);
    border-left: 3px solid #ef4444;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    border-radius: 0.5rem;
    color: #fca5a5;
    font-size: 0.875rem;
    display: flex;
    align-items: start;
    gap: 0.5rem;
}

.error-message i {
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Success message styling */
.success-message {
    background: rgba(34, 197, 94, 0.15);
    border-left: 3px solid #22c55e;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    border-radius: 0.5rem;
    color: #86efac;
    font-size: 0.875rem;
}

/* Field validation states */
.field-error input,
.field-error select,
.field-error textarea {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

.field-success input,
.field-success select,
.field-success textarea {
    border-color: #22c55e !important;
}

/* Login form specific styles */
.login-form input[type="text"],
.login-form input[type="email"],
.login-form input[type="password"] {
    color: #1f2937 !important;
    font-weight: 500 !important;
}

.login-form .password-toggle-btn {
    color: rgba(31, 41, 55, 0.6);
}

.login-form .password-toggle-btn:hover {
    color: rgba(31, 41, 55, 1);
}
