/* =========================================================================
   HTMortgage User Access — Frontend styles
   Intentionally minimal so the form integrates naturally with any theme.
   All selectors are namespaced under .htm-ua-* to avoid conflicts.
   ========================================================================= */

/* Wrapper */
.htm-ua-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* Heading */
.htm-ua-heading {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

/* Notice / alert banners */
.htm-ua-notice {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    background: #f0f6fc;
    border: 1px solid #c8dfee;
    color: #1a3c5e;
}

.htm-ua-notice p,
.htm-ua-notice ul {
    margin: 0;
    padding: 0;
}

.htm-ua-notice ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.htm-ua-notice--error {
    background: #fdf3f3;
    border-color: #e5aaaa;
    color: #6d2121;
}

.htm-ua-notice--success {
    background: #f0faf2;
    border-color: #9dd4a8;
    color: #1d4d25;
}

/* Form */
.htm-ua-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Field */
.htm-ua-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.htm-ua-field label {
    font-weight: 600;
    font-size: 0.9rem;
}

.htm-ua-field label span {
    color: #c00;
    margin-left: 2px;
}

.htm-ua-field input[type="text"],
.htm-ua-field input[type="email"],
.htm-ua-field input[type="password"],
.htm-ua-field select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid #b0bec5;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.5;
    background: #fff;
    color: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.htm-ua-field input:focus,
.htm-ua-field select:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

/* Hint text */
.htm-ua-hint {
    font-size: 0.8rem;
    color: #666;
}

/* Submit row */
.htm-ua-submit {
    margin-top: 0.5rem;
}

/* Button */
.htm-ua-btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
}

.htm-ua-btn:hover,
.htm-ua-btn:focus {
    background: #1557b0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.3);
}

/* Login link below the form */
.htm-ua-login-link {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    text-align: center;
}

/* Login form wrapper (for [htm_login_form] shortcode) */
.htm-ua-login-wrap #htm-login-form p {
    margin-bottom: 0.75rem;
}

.htm-ua-login-wrap #htm-login-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.htm-ua-login-wrap #htm-login-form input[type="text"],
.htm-ua-login-wrap #htm-login-form input[type="password"] {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid #b0bec5;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.htm-ua-login-wrap #htm-login-form input[type="submit"] {
    padding: 0.65rem 1.5rem;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
}

.htm-ua-login-wrap #htm-login-form input[type="submit"]:hover {
    background: #1557b0;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .htm-ua-field input,
    .htm-ua-field select,
    .htm-ua-login-wrap #htm-login-form input[type="text"],
    .htm-ua-login-wrap #htm-login-form input[type="password"] {
        background: #1e1e1e;
        border-color: #555;
        color: #e0e0e0;
    }
}
