/* SMP User Manage - Frontend Styles */
/* Enqueued via wp_head when shortcodes are rendered */

.smp-wrap {
    max-width: 480px;
    margin: 0 auto;
    font-family: inherit;
}

.smp-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.smp-field {
    margin-bottom: 18px;
}
.smp-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}
.smp-field input[type="text"],
.smp-field input[type="email"],
.smp-field input[type="password"],
.smp-field input[type="url"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    transition: border-color .2s;
}
.smp-field input:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(34,113,177,.15);
}
.smp-field-check label { font-weight: normal; display: flex; align-items: center; gap: 6px; }

.smp-btn {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background .2s, opacity .2s;
}
.smp-btn-primary  { background: #2271b1; color: #fff; }
.smp-btn-primary:hover  { background: #135e96; color: #fff; }
.smp-btn-secondary { background: #f0f0f1; color: #3c434a; border: 1px solid #ccc; margin-left: 8px; }
.smp-btn-secondary:hover { background: #dcdcde; }

.smp-links { margin-top: 14px; font-size: 13px; }
.smp-links a { color: #2271b1; text-decoration: none; }
.smp-links a:hover { text-decoration: underline; }

/* Alerts */
.smp-alert {
    padding: 12px 16px;
    border-radius: 5px;
    margin-bottom: 18px;
    font-size: 14px;
}
.smp-alert-error   { background: #ffeef0; border: 1px solid #f5a7a7; color: #9e2b2b; }
.smp-alert-success { background: #edfaed; border: 1px solid #8bc48b; color: #1a5c1a; }

.smp-info { font-size: 15px; }

/* Account page */
.smp-account-wrap .smp-form { max-width: 520px; }

/* ---- Logged-in notice (hiển thị trên trang login khi đã đăng nhập) ---- */
.smp-logged-in-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 12px 16px;
    background: #f0f6fc;
    border: 1px solid #c3d9f0;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}
.smp-notice-text { color: #1d3557; }
.smp-notice-sep  { color: #aaa; }
.smp-notice-link {
    color: #2271b1;
    text-decoration: none;
    white-space: nowrap;
}
.smp-notice-link:hover { text-decoration: underline; }
.smp-notice-logout { color: #b32d2e; }
.smp-notice-logout:hover { color: #8a1e1e; }
