/* ============================================
 * AuthMe — Login Form Styles
 * ============================================
 *
 * Scoped to #authme-login-screen to prevent
 * style conflicts.
 *
 * @package AuthMe
 * ============================================ */

/* ── Input Groups ────────────────────────── */
#authme-login-screen .authme-input-group {
    margin-bottom: 20px;
}

#authme-login-screen .authme-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--authme-border);
    border-radius: var(--authme-radius-md);
    font-size: 15px;
    color: var(--authme-text-main);
    background-color: var(--authme-input-bg);
    font-family: var(--authme-font);
    transition: all 0.2s ease;
}

#authme-login-screen .authme-input:focus {
    outline: none;
    border-color: var(--authme-primary);
    box-shadow: 0 0 0 4px var(--authme-primary-ring);
}

#authme-login-screen .authme-input::placeholder {
    color: var(--authme-text-placeholder);
}

/* Input states — success / error borders */
#authme-login-screen .authme-input.authme-input-success {
    border-color: var(--authme-success);
}

#authme-login-screen .authme-input.authme-input-success:focus {
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

#authme-login-screen .authme-input.authme-input-error {
    border-color: var(--authme-error);
}

#authme-login-screen .authme-input.authme-input-error:focus {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

/* ── Field Messages ──────────────────────── */
/* Hidden by default — only appears when a status class is added via JS */
#authme-login-screen .authme-field-msg {
    display: none;
    font-size: 12px;
    margin-top: 6px;
    line-height: 1.3;
}

#authme-login-screen .authme-field-msg.authme-msg-success {
    display: block;
    color: var(--authme-success);
}

#authme-login-screen .authme-field-msg.authme-msg-error {
    display: block;
    color: var(--authme-error);
}

/* ── Password Wrapper ────────────────────── */
#authme-login-screen .authme-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#authme-login-screen .authme-password-wrapper .authme-input {
    padding-right: 44px;
}

#authme-login-screen .authme-toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--authme-text-muted);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

#authme-login-screen .authme-toggle-password:hover {
    color: var(--authme-primary);
}

/* ── Remember Me ─────────────────────────── */
#authme-login-screen .authme-remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

#authme-login-screen .authme-remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--authme-primary);
    cursor: pointer;
    border-radius: 4px;
}

#authme-login-screen .authme-remember-me label {
    font-size: 13.5px;
    color: var(--authme-text-muted);
    cursor: pointer;
    user-select: none;
}

/* ── Button ──────────────────────────────── */
#authme-login-screen .authme-btn-primary {
    width: 100%;
    padding: 14px;
    background-color: var(--authme-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--authme-radius-md);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--authme-font);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

#authme-login-screen .authme-btn-primary:hover:not(:disabled) {
    background-color: var(--authme-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

#authme-login-screen .authme-btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

#authme-login-screen .authme-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Remember Me + Forgot Password Row ──── */
#authme-login-screen .authme-login-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

#authme-login-screen .authme-login-bottom-row .authme-remember-me {
    margin-bottom: 0;
}

#authme-login-screen .authme-forgot-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--authme-primary);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

#authme-login-screen .authme-forgot-link:hover {
    color: var(--authme-primary-hover);
    text-decoration: underline;
}

