/* ZevoST Login - Login Page Styles */

body.login {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px 0;
    box-sizing: border-box;
}

/* 隐藏底部语言切换 */
body.login #language-switcher,
body.login .language-switcher {
    display: none !important;
}

body.login #login {
    width: 360px;
    padding: 40px 36px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
    margin-left: auto;
    margin-right: auto;
}

body.login h1 a {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 72px;
}

body.login .login-action-login h1 a,
body.login .login-action-lostpassword h1 a,
body.login .login-action-register h1 a {
    margin-bottom: 20px;
}

body.login form {
    border-radius: 8px;
    padding: 0;
    box-shadow: none;
    background: transparent;
    border: none;
}

body.login #loginform {
    border: none;
    box-shadow: none;
}

body.login .forminp {
    border-radius: 6px;
}

body.login label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #1d2327;
    margin-bottom: 6px;
}

body.login p {
    margin-bottom: 16px;
}

body.login .user-pass-wrap {
    margin-bottom: 16px;
}

body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
    border-radius: 6px;
    border: 1px solid #d0d5dd;
    padding: 10px 14px;
    font-size: 14px;
    box-shadow: none;
    transition: border-color .2s, box-shadow .2s;
}

body.login input[type="text"]:hover,
body.login input[type="password"]:hover,
body.login input[type="email"]:hover {
    border-color: #8c8f94;
}

body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34,113,177,.1);
    outline: none;
}

body.login .wp-core-ui .button-primary {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(34,113,177,.2);
    text-shadow: none;
    height: auto;
    line-height: 1.5;
}

body.login .wp-core-ui .button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34,113,177,.3);
}

/* Divider */
.zevost-login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #8c8f94;
    font-size: 13px;
    font-weight: 500;
}
.zevost-login-divider::before,
.zevost-login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}
.zevost-login-divider span {
    padding: 0 12px;
}

/* Passkey button */
.zevost-login-passkey-wrap {
    margin-top: 8px;
}

.zevost-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #1d2327;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    margin-bottom: 8px;
}

.zevost-btn:hover {
    background: #f6f7f7;
    border-color: #2271b1;
    box-shadow: 0 2px 8px rgba(34,113,177,.15);
    transform: translateY(-1px);
}

.zevost-btn-passkey svg {
    flex-shrink: 0;
}

/* Passkey message */
.zevost-passkey-message {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-top: 8px;
}
.zevost-passkey-message.success {
    background: #edfaef;
    color: #1a7e35;
    border: 1px solid #a8e6b2;
}
.zevost-passkey-message.error {
    background: #fef2f2;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

/* Social login buttons */
.zevost-login-social-wrap {
    margin-top: 8px;
    margin-bottom: 8px;
}

.zevost-login-social-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.zevost-social-btn {
    flex-direction: column;
    gap: 4px;
    padding: 8px 4px;
    font-size: 11px;
    line-height: 1.2;
    min-width: 0;
    border-radius: 8px;
}

.zevost-social-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.zevost-social-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

/* Profile section */
.zevost-login-profile-section {
    margin-top: 24px;
}

.zevost-passkey-items {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zevost-passkey-items li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    transition: box-shadow .15s;
}

.zevost-passkey-items li:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.zevost-passkey-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f0f4fb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #2271b1;
}

.zevost-passkey-info {
    flex: 1;
    min-width: 0;
}

.zevost-passkey-items .passkey-name {
    font-weight: 600;
    font-size: 14px;
    color: #1d2327;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zevost-passkey-items .passkey-date {
    color: #8c8f94;
    font-size: 12px;
    display: block;
    margin-top: 2px;
}

.zevost-passkey-items .zevost-delete-passkey {
    flex-shrink: 0;
    color: #b32d2e;
    border-color: #b32d2e;
}

.zevost-passkey-items .zevost-delete-passkey:hover {
    background: #b32d2e;
    color: #fff;
}

/* Social binding on profile page */
.zevost-social-bindings {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zevost-social-bindings li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.zevost-social-binding-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f0f4fb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.zevost-social-binding-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.zevost-social-binding-info {
    flex: 1;
    min-width: 0;
}

.zevost-social-binding-info .binding-name {
    font-weight: 600;
    font-size: 14px;
    color: #1d2327;
    display: block;
}

.zevost-social-binding-info .binding-status {
    font-size: 12px;
    display: block;
    margin-top: 2px;
}

.binding-status.bound { color: #1a7e35; }
.binding-status.unbound { color: #8c8f94; }

.zevost-unbind-social {
    flex-shrink: 0;
    color: #b32d2e !important;
    border-color: #b32d2e !important;
}

.zevost-unbind-social:hover {
    background: #b32d2e !important;
    color: #fff !important;
}

/* =====================
   Social Button Styles
   ===================== */

/* Style: icon-text (default) — already handled by base .zevost-login-social-buttons grid */

/* Style: icon-only */
.zevost-social-style-icon-only {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.zevost-social-style-icon-only .zevost-social-btn {
    width: 44px;
    height: 44px;
    min-width: 0;
    padding: 0;
    border-radius: 50%;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 0;
}

.zevost-social-style-icon-only .zevost-social-btn img {
    width: 22px;
    height: 22px;
}

.zevost-social-style-icon-only .zevost-social-btn span {
    display: none;
}

/* Style: list */
.zevost-social-style-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zevost-social-style-list .zevost-social-btn {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    gap: 12px;
    margin-bottom: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.zevost-social-style-list .zevost-social-btn img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.zevost-social-style-list .zevost-social-btn span {
    width: auto;
}

/* =====================
   Security Page
   ===================== */
.zevost-sec {
    max-width: 620px;
    margin: 32px auto;
    padding: 0 16px 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1d2327;
}

/* Header */
.zevost-sec-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 20px 20px;
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.zevost-sec-avatar {
    position: relative;
    flex-shrink: 0;
}

.zevost-sec-avatar-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: block;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.zevost-sec-avatar-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 22px;
    height: 22px;
    background: #2271b1;
    color: #fff;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zevost-sec-name {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1.3;
}

.zevost-sec-email {
    margin: 0;
    font-size: 13px;
    color: #8c8f94;
}

/* Card */
.zevost-sec-card {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 14px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    overflow: hidden;
}

.zevost-sec-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f1f2;
}

.zevost-sec-card-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zevost-sec-card-icon--key {
    background: #f0f6ff;
    color: #2271b1;
}

.zevost-sec-card-icon--social {
    background: #f0fdf4;
    color: #16a34a;
}

.zevost-sec-card-head-text {
    flex: 1;
    min-width: 0;
}

.zevost-sec-card-title {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
}

.zevost-sec-card-desc {
    margin: 0;
    font-size: 12px;
    color: #8c8f94;
    line-height: 1.5;
}

/* List */
.zevost-sec-list {
    padding: 4px 0;
}

.zevost-sec-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    transition: background .15s;
}

.zevost-sec-row:hover {
    background: #fafbfc;
}

.zevost-sec-row + .zevost-sec-row {
    border-top: 1px solid #f4f5f6;
}

.zevost-sec-row-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #f3f4f6;
    color: #50575e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zevost-sec-row-logo {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zevost-sec-row-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.zevost-sec-row-name {
    font-size: 14px;
    font-weight: 500;
    color: #1d2327;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zevost-sec-row-meta {
    font-size: 12px;
    color: #8c8f94;
}

.zevost-sec-row-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
}

.zevost-sec-badge--on {
    background: #f0fdf4;
    color: #16a34a;
}

.zevost-sec-badge--off {
    background: #f3f4f6;
    color: #8c8f94;
}

/* Buttons */
.zevost-sec-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 7px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, border-color .15s, opacity .15s;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}

.zevost-sec-btn--primary {
    padding: 7px 14px;
    background: #2271b1;
    color: #fff;
    border: 1px solid #2271b1;
    font-size: 13px;
}

.zevost-sec-btn--primary:hover {
    background: #135e96;
    border-color: #135e96;
    color: #fff;
}

.zevost-sec-btn--ghost {
    padding: 6px 12px;
    background: transparent;
    color: #50575e;
    border: 1px solid #dcdcde;
    font-size: 13px;
}

.zevost-sec-btn--ghost:hover {
    border-color: #8c8f94;
    color: #1d2327;
}

.zevost-sec-btn--danger {
    color: #b32d2e;
    border-color: #f0b8b8;
    font-size: 12px;
}

.zevost-sec-btn--danger:hover {
    background: #fef6f6;
    border-color: #cc1818;
}

.zevost-sec-btn--sm {
    padding: 5px 11px;
    font-size: 12px;
}

.zevost-sec-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* Empty state */
.zevost-sec-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px 20px;
    color: #8c8f94;
    text-align: center;
}

.zevost-sec-empty svg {
    opacity: .4;
}

.zevost-sec-empty p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

/* Inline message */
.zevost-sec-msg {
    margin: 0 20px 16px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
}

.zevost-sec-msg.success {
    background: #edfaef;
    border: 1px solid #b5e6bc;
    color: #0a4a1a;
}

.zevost-sec-msg.error {
    background: #fef6f6;
    border: 1px solid #f0b8b8;
    color: #5c1010;
}

/* zevost-passkey-message used by passkey.js */
.zevost-sec .zevost-passkey-message {
    margin: 0 20px 16px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
}

.zevost-sec .zevost-passkey-message.success {
    background: #edfaef;
    border: 1px solid #b5e6bc;
    color: #0a4a1a;
}

.zevost-sec .zevost-passkey-message.error {
    background: #fef6f6;
    border: 1px solid #f0b8b8;
    color: #5c1010;
}

/* Notice banners */
.zevost-sec-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 20px 4px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
}

.zevost-sec-notice--success {
    background: #edfaef;
    border: 1px solid #b5e6bc;
    color: #0a4a1a;
}

.zevost-sec-notice--error {
    background: #fef6f6;
    border: 1px solid #f0b8b8;
    color: #5c1010;
}

/* Login prompt */
.zevost-sec-login-prompt {
    max-width: 360px;
    margin: 80px auto;
    text-align: center;
    color: #50575e;
}

.zevost-sec-login-prompt svg {
    opacity: .3;
    margin-bottom: 16px;
}

.zevost-sec-login-prompt p {
    font-size: 15px;
    margin: 0 0 20px;
}

.zevost-sec-login-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    background: #2271b1;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background .15s;
}

.zevost-sec-login-btn:hover {
    background: #135e96;
    color: #fff;
}

/* Custom modal (used by passkey.js) */
.zevost-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .18s;
}
.zevost-modal-overlay.active { opacity: 1; }
.zevost-modal-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    padding: 28px 32px;
    min-width: 300px;
    max-width: 460px;
    width: 90%;
    transform: translateY(-12px);
    transition: transform .18s;
}
.zevost-modal-overlay.active .zevost-modal-box { transform: translateY(0); }
.zevost-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 10px;
}
.zevost-modal-body {
    font-size: 14px;
    color: #50575e;
    line-height: 1.6;
    margin-bottom: 22px;
}
.zevost-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.zevost-modal-btn {
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: opacity .15s;
}
.zevost-modal-btn:hover { opacity: .85; }
.zevost-modal-btn-primary {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}
.zevost-modal-btn-ghost {
    background: #fff;
    color: #50575e;
    border-color: #c3c4c7;
}

/* Bottom links */
body.login #nav,
body.login #backtoblog {
    margin-top: 16px;
    text-align: center;
}

body.login #nav a,
body.login #backtoblog a {
    color: #50575e;
    font-size: 13px;
    text-decoration: none;
    transition: color .2s;
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
    color: #2271b1;
}

/* =====================
   Mobile Responsive
   ===================== */
@media (max-width: 480px) {
    body.login {
        padding: 12px;
        justify-content: flex-start;
        padding-top: 24px;
    }

    body.login #login {
        width: 100% !important;
        padding: 32px 24px;
        border-radius: 10px;
        box-sizing: border-box;
    }

    body.login h1 a {
        height: 56px;
    }

    .zevost-login-social-buttons {
        grid-template-columns: repeat(3, 1fr);
    }

    .zevost-btn {
        font-size: 13px;
        padding: 9px 12px;
    }
}
