/* Register Page Custom Styles */

/* Required field asterisk - danger/red */
.label-required-asterisk {
    color: #dc2626;
}

/* Ensure full_name and gender show consistent borders (match other fields) */
#full_name,
#gender {
    border: 2px solid #cbd5e1 !important;
    border-radius: 4px;
    background-color: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

#full_name:focus,
#gender:focus {
    outline: none;
    border-color: #fbbf24 !important;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
}

#gender {
    appearance: none;
    cursor: pointer;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5c6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

/* Validation error state overrides */
#full_name.border-red-500,
#gender.border-red-500 {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
}

/* Logo Grid Styles */
.register-logo-grid {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 8px;
    padding: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.register-logo-grid > div {
    border-radius: 3px;
}

.register-logo-grid > div:nth-child(1) {
    background: #fcd34d;
}

.register-logo-grid > div:nth-child(2),
.register-logo-grid > div:nth-child(3) {
    background: #fbbf24;
}

.register-logo-grid > div:nth-child(4) {
    background: #f59e0b;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 48px;
    width: 100%;
    box-sizing: border-box;
}

/* Password Toggle Button */
.password-toggle-btn {
    position: absolute;
    right: 16px;
    top: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: #475569;
}

.password-toggle-icon {
    font-size: 16px;
    pointer-events: none;
}

/* Register Button Styles */
.register-button {
    font-size: 16px;
}

/* Sign In Link Styles */
.sign-in-link {
    font-size: 16px;
}

/* Validation Error Styles */
.error-message {
    color: #e63946;
    font-size: 14px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.input-error {
    border-color: #e63946 !important;
    background-color: #fee2e2 !important;
}

.input-valid {
    border-color: #06d6a0 !important;
    background-color: #f0fdfa !important;
}

/* Select2 Error Container */
.select2-container--error .select2-selection {
    border-color: #e63946 !important;
    background-color: #fee2e2 !important;
}

/* Password Requirements Styles */
.password-requirements {
    font-size: 13px;
    line-height: 1.6;
}

.password-requirement-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.password-requirement-item.requirement-met {
    color: #06d6a0;
}

.password-requirement-item.requirement-not-met {
    color: #64748b;
}

.password-requirement-item.requirement-not-met .requirement-icon {
    color: #94a3b8;
}

.password-requirement-item.requirement-met .requirement-icon {
    color: #06d6a0;
}

.requirement-icon {
    font-size: 12px;
    width: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Username / Email availability messages */
.availability-msg {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 20px;
}

.availability-msg.hidden {
    display: none;
}

.availability-msg.availability-checking {
    color: #64748b;
}

.availability-msg.availability-ok {
    color: #059669;
}

.availability-msg.availability-error {
    color: #dc2626;
}
