.auth-page {
    width: min(620px, calc(100% - 32px));
    padding: 72px 0 100px;
}

.auth-page > h1 {
    text-align: center;
    color: #102846;
    font-size: 42px;
    letter-spacing: -.045em;
}

.auth-page .entry-content {
    padding: 34px 38px;
    border: 1px solid #e1e7ef;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 65px rgba(31, 65, 115, .12);
}

.auth-page .um { margin-bottom: 0 !important; }
.auth-page .um input[type="submit"].um-button { background: #2869ec !important; border-radius: 10px !important; }
.auth-page .um input[type="submit"].um-button:hover { background: #174fc5 !important; }
.auth-page .um .um-button.um-alt { border-radius: 10px !important; }
.auth-page .um-field-label label { color: #17345d !important; font-weight: 700 !important; }
.auth-page .um-form input[type="text"],
.auth-page .um-form input[type="password"] { border-color: #dce3ed !important; border-radius: 9px !important; }

@media (max-width: 720px) {
    .auth-page { padding: 50px 0 70px; }
    .auth-page > h1 { font-size: 34px; }
    .auth-page .entry-content { padding: 25px 18px; }
}

/* Customer workspace */
.auth-page:has(.chatautoai-console) { width: min(1120px, calc(100% - 32px)); }
.auth-page:has(.chatautoai-console) > h1 { display: none; }
.auth-page:has(.chatautoai-console) .entry-content { max-width: none; padding: 0; border: 0; background: transparent; box-shadow: none; }
.chatautoai-console { margin-top: 12px; color: #14213a; }
.cac-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 30px 32px; border: 1px solid #e1e7f0; border-radius: 24px;
    background: linear-gradient(130deg, #fff 0%, #f4f7ff 66%, #effcf8 100%);
    box-shadow: 0 18px 55px rgba(31, 65, 115, .09);
}
.cac-identity { display: flex; align-items: center; gap: 17px; }
.cac-avatar {
    width: 58px; height: 58px; flex: 0 0 auto; display: grid; place-items: center;
    border-radius: 18px; color: #fff; background: linear-gradient(145deg, #2856d8, #5e87ff);
    box-shadow: 0 12px 28px rgba(40, 86, 216, .27); font-size: 17px; font-weight: 900;
}
.cac-eyebrow { color: #3867ed; font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.cac-identity h2 { margin: 3px 0 1px; color: #112846; font-size: 29px; line-height: 1.2; letter-spacing: -.04em; }
.cac-identity p { margin: 0; color: #7a8698; font-size: 13px; }
.cac-status { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.cac-status:before { content: ''; width: 7px; height: 7px; border-radius: 50%; }
.cac-status.is-ready { color: #18795b; background: #eaf9f3; }
.cac-status.is-ready:before { background: #27b185; box-shadow: 0 0 0 4px rgba(39,177,133,.12); }
.cac-status.is-pending { color: #966400; background: #fff4d5; }
.cac-status.is-pending:before { background: #e8a512; box-shadow: 0 0 0 4px rgba(232,165,18,.12); }

.cac-notice { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 13px 16px; border-radius: 12px; font-size: 12px; }
.cac-notice strong, .cac-notice span { display: block; }
.cac-notice.is-warning { color: #855d05; background: #fff7df; }
.cac-notice.is-success { color: #18795b; background: #ebfaf4; }
.cac-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin: 38px 2px 18px; }
.cac-section-heading span { color: #3867ed; font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.cac-section-heading h3 { margin: 3px 0 0; color: #112846; font-size: 24px; letter-spacing: -.035em; }
.cac-section-heading p { max-width: 420px; margin: 0; color: #7a8698; font-size: 12px; text-align: right; }

.cac-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.cac-service-card {
    position: relative; min-height: 265px; display: flex; flex-direction: column; padding: 24px;
    border: 1px solid #e1e7f0; border-radius: 20px; background: #fff;
    box-shadow: 0 10px 34px rgba(31, 65, 115, .055); overflow: hidden;
}
.cac-service-card:after { content: ''; position: absolute; width: 130px; height: 130px; right: -55px; top: -60px; border-radius: 50%; background: rgba(56,103,237,.055); }
.cac-service-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #3867ed; background: #eaf0ff; font-size: 15px; font-weight: 900; }
.cac-chatwoot .cac-service-icon { color: #147d60; background: #e5f8f1; }
.cac-tiktok .cac-service-icon { color: #d46050; background: #ffefec; }
.cac-service-card small { display: block; margin-top: 21px; color: #98a2b2; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.cac-service-card h3 { margin: 4px 0 7px; color: #152945; font-size: 19px; letter-spacing: -.025em; }
.cac-service-card p { margin: 0; color: #758194; font-size: 12px; line-height: 1.7; }
.cac-action { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 18px; border-top: 1px solid #edf0f5; color: #315bd4; font-size: 12px; font-weight: 800; }
.cac-action:hover { color: #173fab; }
.cac-action.is-disabled { color: #a0a8b5; cursor: not-allowed; }

.cac-sync-panel, .cac-ready-panel {
    margin-top: 18px; padding: 24px; border: 1px solid #dfe6f1; border-radius: 20px; background: #fff;
    box-shadow: 0 10px 34px rgba(31, 65, 115, .05);
}
.cac-sync-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 35px; align-items: center; }
.cac-sync-copy { display: flex; align-items: flex-start; gap: 13px; }
.cac-sync-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: #3867ed; background: #edf2ff; font-weight: 900; }
.cac-sync-copy h3 { margin: 0 0 4px; color: #152945; font-size: 17px; }
.cac-sync-copy p { margin: 0; color: #7b8798; font-size: 11px; line-height: 1.65; }
.cac-sync-form label { display: block; margin-bottom: 7px; color: #40506a; font-size: 11px; font-weight: 750; }
.cac-sync-form > div { display: flex; gap: 8px; }
.cac-sync-form input { min-width: 0; flex: 1; height: 44px; padding: 0 13px; border: 1px solid #d9e1ec; border-radius: 11px; background: #fafbfd; font: inherit; font-size: 13px; outline: none; }
.cac-sync-form input:focus { border-color: #91aaf3; box-shadow: 0 0 0 4px rgba(56,103,237,.09); }
.cac-sync-form button { min-width: 110px; border: 0; border-radius: 11px; color: #fff; background: #3867ed; font-weight: 800; cursor: pointer; }
.cac-sync-form button:hover { background: #2853ce; }
.cac-ready-panel { display: flex; align-items: center; gap: 14px; color: #18795b; background: #f2fcf8; }
.cac-ready-panel > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #27b185; font-weight: 900; }
.cac-ready-panel strong { display: block; }
.cac-ready-panel p { margin: 2px 0 0; color: #568576; font-size: 12px; }

@media (max-width: 900px) {
    .cac-service-grid { grid-template-columns: 1fr; }
    .cac-service-card { min-height: 225px; }
    .cac-sync-panel { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 620px) {
    .cac-hero { align-items: flex-start; flex-direction: column; padding: 22px; }
    .cac-identity { align-items: flex-start; }
    .cac-avatar { width: 48px; height: 48px; border-radius: 15px; }
    .cac-identity h2 { font-size: 23px; }
    .cac-section-heading { display: block; }
    .cac-section-heading p { margin-top: 6px; text-align: left; }
    .cac-service-card { padding: 21px; }
    .cac-sync-form > div { flex-direction: column; }
    .cac-sync-form button { height: 44px; }
}
