/* CMaNGOS Account Registration — базовые стили.
   Можно переопределить полностью через "Custom CSS" в настройках плагина. */

/* Обёртка вокруг формы — используется для повышения специфичности CSS
   (чтобы гарантированно перебивать стили темы Uncode) и сбрасывает
   собственные отступы/margin, которые тема иногда навешивает на дочерние блоки */
.cmr-widget-wrap {
    margin: 0;
    padding: 0;
    width: 100%;
}
.cmr-widget-wrap p {
    margin: 0 !important;
}

.cmr-form {
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: inherit;
    --cmr-button-color: #4a90d9;
    width: 100%;
    box-sizing: border-box;
}

.cmr-form-title {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
}

.cmr-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cmr-field label {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.8;
}

.cmr-required {
    color: #dc2626;
}

.cmr-field input[type="text"],
.cmr-field input[type="email"],
.cmr-field input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #111;
}

.cmr-field input:focus {
    outline: none;
    border-color: var(--cmr-button-color);
    box-shadow: 0 0 0 2px rgba(74,144,217,0.2);
}

/* --- password field with eye toggle --- */

.cmr-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.cmr-password-wrap input {
    padding-right: 40px !important;
}

.cmr-eye-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 6px;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.cmr-eye-toggle:hover {
    opacity: 0.8;
}

.cmr-eye-toggle.cmr-eye-active {
    opacity: 1;
}

/* --- password match indicator --- */

.cmr-match-indicator {
    display: none;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 0;
}

.cmr-match-indicator.cmr-match-ok {
    color: #1a7f37;
}

.cmr-match-indicator.cmr-match-bad {
    height: 3px;
    background: #dc2626;
    border-radius: 2px;
}

/* honeypot — скрыто от людей, но присутствует в DOM для ботов */
.cmr-hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cmr-terms-text {
    font-size: 12px;
    opacity: 0.65;
    line-height: 1.4;
    margin: 0;
}

.cmr-submit {
    padding: 11px 18px;
    border: none;
    border-radius: 6px;
    background: var(--cmr-button-color);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.cmr-submit:hover {
    filter: brightness(0.9);
}

.cmr-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cmr-restore-link {
    display: inline-block;
    text-align: center;
    font-size: 13px;
    color: inherit;
    opacity: 0.7;
    text-decoration: underline;
    margin-top: -4px;
}

.cmr-restore-link:hover {
    opacity: 1;
}

.cmr-message {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.cmr-message.cmr-success {
    background: rgba(46, 160, 67, 0.12);
    color: #1a7f37;
}

.cmr-message.cmr-error {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

/* --- Online widget --- */

.cmr-online-widget {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(0,0,0,0.04);
}

.cmr-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cmr-status-dot.cmr-online {
    background: #2ea043;
    box-shadow: 0 0 0 3px rgba(46,160,67,0.2);
}

.cmr-status-dot.cmr-offline {
    background: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.2);
}

.cmr-bots-note {
    opacity: 0.65;
    font-size: 12px;
}
