.tap-rpa-form,
.tap-rpa-account,
.tap-rpa-locked,
.tap-rpa-notice {
    box-sizing: border-box;
    max-width: 720px;
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid rgba(68, 79, 47, 0.22);
    border-radius: 14px;
    background: #fffaf0;
}
.tap-rpa-form input[type="text"],
.tap-rpa-form input[type="email"],
.tap-rpa-form input[type="password"] {
    width: 100%;
    max-width: 520px;
    padding: 0.65rem;
    border: 1px solid rgba(68, 79, 47, 0.35);
    border-radius: 8px;
}
.tap-rpa-button {
    display: inline-block;
    padding: 0.65rem 1rem;
    border: 0;
    border-radius: 999px;
    background: #4f5f35;
    color: #fff !important;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
}
.tap-rpa-help {
    color: #5c5545;
    font-size: 0.95rem;
}
.tap-rpa-error {
    border-color: #9f3a38;
    background: #fff1f0;
}
.tap-rpa-success {
    border-color: #3f7d44;
    background: #f1fff2;
}
.tap-rpa-locked strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #3f4d29;
}
.tap-rpa-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
.tap-rpa-form .tap-rpa-agreement {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.75rem;
    border-left: 4px solid rgba(79, 95, 53, 0.45);
    background: rgba(255, 255, 255, 0.55);
    white-space: nowrap !important;
}
.tap-rpa-form .tap-rpa-agreement input[type="checkbox"] {
    margin-right: 0.45rem;
}
.tap-rpa-logout-link {
    margin-top: 0.5rem;
}
.tap-rpa-form .tap-rpa-agreement-check {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 0.65rem;
    width: max-content !important;
    max-width: none !important;
    margin: 0;
    white-space: nowrap !important;
}
.tap-rpa-form .tap-rpa-agreement-check input[type="checkbox"] {
    display: inline-block !important;
    flex: 0 0 18px !important;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
}
.tap-rpa-form .tap-rpa-agreement-check span,
.tap-rpa-form .tap-rpa-agreement-check a {
    display: inline !important;
    max-width: none !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
}

.tap-rpa-password-field {
    margin: 1rem 0;
}
.tap-rpa-password-field > label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 700;
}
.tap-rpa-password-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}
.tap-rpa-password-row input[type="password"],
.tap-rpa-password-row input[type="text"] {
    flex: 1 1 280px;
    margin: 0;
}
.tap-rpa-secondary-button {
    display: inline-block;
    padding: 0.6rem 0.85rem;
    border: 1px solid rgba(68, 79, 47, 0.45);
    border-radius: 999px;
    background: #ffffff;
    color: #3f4d29;
    cursor: pointer;
    font-weight: 700;
    line-height: 1.2;
}
.tap-rpa-secondary-button:hover,
.tap-rpa-secondary-button:focus {
    background: #f3f5ed;
}
.tap-rpa-password-requirements {
    max-width: 620px;
    margin: 0.55rem 0 0;
    color: #5c5545;
    font-size: 0.92rem;
}
.tap-rpa-password-generated-status {
    min-height: 1.4em;
    margin: 0.35rem 0 0;
    color: #3f4d29;
    font-size: 0.92rem;
    font-weight: 600;
}
/* v0.3.3: keep the complete login agreement statement on one desktop line. */
.tap-rpa-form { overflow: visible !important; }
.tap-rpa-form .tap-rpa-agreement {
    display: block !important;
    width: max-content !important;
    min-width: 100% !important;
    max-width: none !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
}
.tap-rpa-form .tap-rpa-agreement-check,
.tap-rpa-form .tap-rpa-agreement-check span,
.tap-rpa-form .tap-rpa-agreement-check a {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}
