.rm-auth-wrapper {
    max-width: 580px;
    margin: 40px auto;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    color: #1e293b;
}

.rm-auth-wrapper h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #0f172a;
}

.rm-auth-wrapper > p {
    color: #64748b;
    margin-bottom: 25px;
}

.rm-auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rm-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rm-form-group > label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.rm-form-group input:not([type="radio"]) {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rm-form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.rm-account-types {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rm-account-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    background: #f8fafc;
    transition: 0.2s;
}

.rm-account-card:hover {
    border-color: #2563eb;
}

.rm-account-card:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
}

.rm-account-card strong {
    font-size: 17px;
    color: #0f172a;
}

.rm-account-card span {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.rm-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
}

.rm-checkbox input {
    flex-shrink: 0;
    margin-top: 4px;
}

.rm-button {
    display: inline-block;
    width: 100%;
    padding: 14px 22px;
    background: #2563eb;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s;
}

.rm-button:hover {
    background: #1d4ed8;
}

.rm-button:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

.rm-notice {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.rm-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.rm-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.rm-auth-footer {
    text-align: center;
    font-size: 14px;
    margin: 0;
}

.rm-auth-wrapper a:not(.rm-button) {
    color: #2563eb;
}

.rm-logout {
    width: auto;
}

@media (max-width: 600px) {

    .rm-auth-wrapper {
        margin: 20px 10px;
        padding: 22px;
    }

    .rm-account-types {
        grid-template-columns: 1fr;
    }

    .rm-auth-wrapper h2 {
        font-size: 24px;
    }