/* Frontend signup — dynamic account type, validation, password strength */
.signup-bg {
    background: linear-gradient(135deg, #0f2744 0%, #1e5f9e 50%, #0ea5e9 100%);
}

.signup-card {
    max-width: 28rem;
    width: 100%;
}

.signup-account-type-btn {
    border: 2px solid #d1d5db;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    cursor: pointer;
    background: #fff;
}

.signup-account-type-btn:hover {
    border-color: #1e5f9e;
}

.signup-account-type-btn.is-active {
    border-color: #1e5f9e;
    background: rgba(30, 95, 158, 0.08);
    box-shadow: 0 0 0 1px rgba(30, 95, 158, 0.15);
}

.signup-account-type-btn.is-active .signup-type-icon,
.signup-account-type-btn.is-active .signup-type-title {
    color: #1e5f9e;
}

.signup-field-hint {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    min-height: 1.125rem;
}

.signup-field-hint.ok,
.signup-field-hint.is-ok { color: #059669; }
.signup-field-hint.warn,
.signup-field-hint.is-warn { color: #d97706; }
.signup-field-hint.err,
.signup-field-hint.is-error { color: #dc2626; }

.signup-input.is-valid { border-color: #059669; }
.signup-input.is-invalid { border-color: #dc2626; }

.signup-pw-meter {
    margin-top: 0.4rem;
}

.signup-pw-meter .bar {
    height: 5px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.signup-pw-meter .fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width 0.2s ease, background 0.2s ease;
}

.signup-pw-meter .fill.weak { background: #dc2626; }
.signup-pw-meter .fill.fair { background: #d97706; }
.signup-pw-meter .fill.good { background: #2563eb; }
.signup-pw-meter .fill.strong { background: #059669; }

.signup-pw-toggle {
    position: absolute;
    inset-block: 0;
    right: 0;
    padding: 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.signup-pw-toggle:hover {
    color: #0369a1;
}

.signup-password-meter {
    height: 4px;
    border-radius: 999px;
    background: #e5e7eb;
    margin-top: 0.5rem;
    overflow: hidden;
}

.signup-password-meter-bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width 0.25s ease, background 0.25s ease;
}

.signup-password-meter-bar.weak { background: #ef4444; width: 33%; }
.signup-password-meter-bar.fair { background: #f59e0b; width: 66%; }
.signup-password-meter-bar.strong { background: #10b981; width: 100%; }

.signup-submit-btn[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

.signup-submit-btn .signup-spinner {
    display: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: signup-spin 0.7s linear infinite;
}

.signup-submit-btn.is-loading .signup-spinner { display: inline-block; }
.signup-submit-btn.is-loading .signup-btn-label { opacity: 0.85; }

@keyframes signup-spin {
    to { transform: rotate(360deg); }
}

.signup-alert {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.signup-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.signup-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.signup-agency-note {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.signup-agency-note a {
    color: #1e5f9e;
    font-weight: 500;
}

.signup-social-row .fb-login-button-wrap {
    display: inline-flex;
    align-items: center;
}

@media (min-width: 640px) {
    .signup-card { max-width: 32rem; }
}
