/* ============================================================
   Account / My Account Pages
   ============================================================ */

/* ---- Login page ------------------------------------------- */
.acc-login-page {
    background: #f4f6fa;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 50px 0;
}
.acc-login-wrap {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 0 16px;
}
.acc-login-brand { text-align: center; margin-bottom: 28px; }
.acc-login-brand img { height: 44px; width: auto; }

.acc-login-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 36px 36px 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.acc-login-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 6px;
    text-align: center;
}
.acc-login-sub {
    font-size: 13px;
    color: #888;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
}
.acc-login-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: #888;
}
.acc-login-footer a { color: #52b788; font-weight: 600; }

/* ---- Register CTA block below login ---------------------- */
.acc-register-cta {
    margin-top: 20px;
    background: #fff;
    border: 2px dashed #52b788;
    border-radius: 14px;
    padding: 28px 32px;
    text-align: center;
}
.acc-register-cta-title {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 6px;
}
.acc-register-cta-text {
    font-size: 13px;
    color: #666;
    margin: 0 0 18px;
    line-height: 1.5;
}
.acc-register-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #52b788, #3d9069);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 3px 12px rgba(82,183,136,0.3);
}
.acc-register-cta-btn,
.acc-register-cta-btn:visited,
.acc-register-cta-btn:active {
    color: #fff !important;
}
.acc-register-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(82,183,136,0.4);
    color: #fff !important;
}
.acc-register-cta-contact {
    margin: 14px 0 0;
    font-size: 12px;
    color: #999;
}
.acc-register-cta-contact a {
    color: #52b788;
    font-weight: 600;
}

/* ---- Shared form fields ----------------------------------- */
.acc-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.acc-field label { font-size: 13px; font-weight: 700; color: #333; }
.acc-field label i { margin-right: 5px; color: #aaa; }
.acc-field input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 7px;
    font-size: 14px;
    color: #222;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.acc-field input:focus {
    border-color: #52b788;
    box-shadow: 0 0 0 3px rgba(82,183,136,0.18);
    background: #fff;
}
.acc-field.has-error input { border-color: #e74c3c; }
.acc-field-error { font-size: 12px; color: #e74c3c; margin: 0; }
.acc-field-hint  { font-size: 11px; color: #aaa; margin: 2px 0 0; }
.acc-disabled { background: #f0f0f0 !important; color: #aaa !important; cursor: not-allowed; }

.acc-password-wrap { position: relative; }
.acc-password-wrap input { padding-right: 42px; }
.acc-pw-toggle {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: #aaa; cursor: pointer;
    padding: 0; font-size: 14px;
}
.acc-pw-toggle:hover { color: #555; }

.acc-submit-btn {
    width: 100%;
    padding: 13px;
    background: #52b788;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}
.acc-submit-btn:hover { background: #3d9069; }

/* ---- Divider --------------------------------------------- */
.acc-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #999;
    font-size: 13px;
}
.acc-divider::before,
.acc-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

/* ---- Google button --------------------------------------- */
.acc-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, box-shadow .2s;
}
.acc-google-btn:hover {
    background: #f7f8f8;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

/* ---- Alerts ---------------------------------------------- */
.acc-alert {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}
.acc-alert-success { background: #e8f9ee; color: #1d7a3f; border: 1px solid #b8e6c8; }
.acc-alert-error   { background: #fdecea; color: #c0392b; border: 1px solid #f5c6c2; }

/* ---- Account page layout --------------------------------- */
.acc-page { padding: 40px 0 70px; background: #f4f6fa; }
.acc-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}

/* ---- Sidebar --------------------------------------------- */
.acc-sidebar {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 20px;
}
.acc-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 18px;
    background: linear-gradient(135deg, #52b788, #3d9069);
    color: #fff;
}
.acc-user-avatar {
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.acc-user-name  { font-size: 14px; font-weight: 700; color: #fff; margin: 0 0 2px; }
.acc-user-email { font-size: 11px; color: rgba(255,255,255,0.8); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }

.acc-nav { padding: 10px 0; }
.acc-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s;
}
.acc-nav-link i { width: 16px; text-align: center; color: #aaa; }
.acc-nav-link:hover { background: #f4f6fa; color: #52b788; }
.acc-nav-link:hover i { color: #52b788; }
.acc-nav-link.active { background: #e8f9ee; color: #52b788; font-weight: 700; }
.acc-nav-link.active i { color: #52b788; }
.acc-nav-logout { color: #e74c3c; }
.acc-nav-logout i { color: #e74c3c; }
.acc-nav-logout:hover { background: #fdecea; color: #c0392b; }

/* ---- Main content area ----------------------------------- */
.acc-main { display: flex; flex-direction: column; gap: 20px; }

.acc-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.acc-stat {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 18px 20px;
    text-align: center;
}
.acc-stat-num { display: block; font-size: 28px; font-weight: 800; color: #52b788; line-height: 1; margin-bottom: 6px; }
.acc-stat-lbl { font-size: 12px; color: #888; font-weight: 500; }

.acc-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
}
.acc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
}
.acc-card-title { font-size: 18px; font-weight: 700; color: #222; margin: 0; }

.acc-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.acc-btn-primary { background: #52b788; color: #fff !important; }
.acc-btn-primary:hover { background: #3d9069; }

/* ---- Table ----------------------------------------------- */
.acc-table { width: 100%; border-collapse: collapse; }
.acc-table thead th { padding: 12px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #999; background: #fafafa; border-bottom: 1px solid #eee; text-align: left; }
.acc-table tbody td { padding: 13px 16px; font-size: 14px; color: #444; border-bottom: 1px solid #f5f5f5; }
.acc-table tbody tr:last-child td { border-bottom: none; }
.acc-table-title a { color: #222; font-weight: 600; text-decoration: none; }
.acc-table-title a:hover { color: #52b788; }
.acc-table-date { color: #aaa !important; font-size: 13px !important; }
.acc-link { color: #52b788; font-size: 16px; }

.acc-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.acc-badge-active  { background: #e8f9ee; color: #1d7a3f; }
.acc-badge-pending { background: #fff8e1; color: #b07d00; }
.acc-badge-draft   { background: #f0f0f0; color: #888; }
.acc-badge-expired { background: #fdecea; color: #c0392b; }

.acc-expiry-days { font-size: 12px; font-weight: 600; color: #1e40af; }
.acc-expiry-days.is-urgent { color: #c0392b; }

.acc-empty { text-align: center; padding: 50px 20px; }
.acc-empty i { font-size: 48px; color: #ddd; margin-bottom: 16px; display: block; }
.acc-empty p { color: #888; margin-bottom: 20px; }

.acc-pagination { padding: 16px 24px; border-top: 1px solid #f0f0f0; }

/* ---- Profile form ---------------------------------------- */
.acc-card form { padding: 24px; }
.acc-form-section { margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid #f0f0f0; }
.acc-form-section:last-of-type { border-bottom: none; margin-bottom: 0; }
.acc-form-section-title { font-size: 15px; font-weight: 700; color: #222; margin-bottom: 4px; }
.acc-form-section-hint  { font-size: 13px; color: #aaa; margin-bottom: 18px; }
.acc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.acc-form-actions { padding-top: 8px; }

/* ---- Responsive ------------------------------------------ */
@media (max-width: 900px) {
    .acc-layout { grid-template-columns: 1fr; }
    .acc-sidebar { position: static; }
    .acc-stats-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .acc-login-card { padding: 24px 20px; }
    .acc-stats-bar { grid-template-columns: repeat(2, 1fr); }
    .acc-form-row { grid-template-columns: 1fr; }
}
