body {
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.register-shell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-card {
    width: 440px;
    max-width: 100%;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-size: var(--fs-14);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: var(--fs-16);
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--skin-accent);
    box-shadow: 0 0 0 3px var(--skin-accent-soft);
}

.reg-admin-checkbox.admin-checkbox-row,
.admin-checkbox-row {
    display: flex;
    align-items: center;
}

.reg-admin-checkbox {
    margin-bottom: 16px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
    box-sizing: border-box;
}

.admin-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    line-height: 1;
    margin-bottom: 0;
    font-size: var(--fs-14);
    color: #333;
    font-weight: 600;
}

.admin-checkbox-label input[type="checkbox"] {
    margin: 0;
    padding: 0;
    vertical-align: middle;
    flex: 0 0 auto;
    width: 1.125em;
    height: 1.125em;
    cursor: pointer;
}

.admin-checkbox-label span {
    display: inline-block;
    line-height: 1;
}

.btn-login {
    background: linear-gradient(135deg, var(--skin-accent) 0%, var(--skin-accent-600) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: var(--fs-16);
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--skin-accent-shadow);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.alert {
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: var(--fs-14);
    border: none;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-info {
    background-color: #cff4fc;
    color: #055160;
}

.loading {
    display: none;
}
.loading.is-visible {
    display: inline-block;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.invite-banner {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.invite-banner .invite-label {
    font-size: var(--fs-12);
    font-weight: 700;
    color: #166534;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.invite-code-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 8px 12px;
    font-family: var(--mono);
    font-size: var(--fs-16);
    font-weight: 700;
    color: #166534;
}

.btn-copy {
    background: none;
    border: 1px solid #86efac;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: var(--fs-12);
    font-weight: 600;
    color: #166534;
    cursor: pointer;
}

.btn-copy:hover {
    background: #dcfce7;
}

.invite-hint {
    font-size: var(--fs-12);
    color: #166534;
    margin-top: 6px;
}

.invite-login-action {
    margin-top: 12px;
}

.auth-switch-link {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #888;
}

.auth-switch-link a {
    color: var(--skin-accent) !important;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
}

.auth-switch-link a:hover {
    text-decoration: underline;
}

.register-closed-message {
    text-align: center;
}

.register-lock-icon,
.register-info-icon {
    margin-right: 6px;
}

.register-pending-hint {
    font-size: 13px;
}

.is-hidden {
    display: none;
}
