/* ============================================================
   Careerfy Employment Agent v3 — cea-style.css
   ============================================================ */

/* ---- EA Badge on job listing cards ---- */
.cea-badge {
    display: inline-block;
    background: #e8f4fd;
    color: #1a73e8;
    border: 1px solid #b3d7f7;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* ---- Page wrapper ---- */
.cea-wrap {
    max-width: 860px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ---- Register card ---- */
.cea-register-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 28px rgba(0,0,0,.10);
    overflow: hidden;
}

/* ---- Header ---- */
.cea-reg-header {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    padding: 36px 40px 30px;
    text-align: center;
    color: #fff;
}
.cea-reg-icon {
    width: 60px; height: 60px;
    background: rgba(255,255,255,.18);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    font-size: 26px;
}
.cea-reg-header h2 { font-size: 22px; font-weight: 700; margin: 0 0 6px; color: #fff; }
.cea-reg-header p  { font-size: 13px; opacity: .85; margin: 0; }

/* ---- Alert ---- */
.cea-alert {
    margin: 0 40px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 24px;
}
.cea-alert-success { background:#d4edda; color:#155724; border:1px solid #c3e6cb; }
.cea-alert-error   { background:#f8d7da; color:#721c24; border:1px solid #f5c6cb; }

/* ---- Form wrapper ---- */
.cea-reg-form-wrap {
    padding: 32px 40px;
}

/* ---- Section label ---- */
.cea-section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #1a73e8;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---- Form layout ---- */
.cea-form-group { margin-bottom: 18px; }
.cea-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}
.req { color: #e53e3e; }

.cea-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* ---- Inputs ---- */
.cea-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #dde1e7;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fafbfc;
    transition: border .2s;
    box-sizing: border-box;
}
.cea-input:focus {
    outline: none;
    border-color: #1a73e8;
    background: #fff;
}
.cea-textarea { resize: vertical; min-height: 100px; }

/* ---- Password wrap ---- */
.cea-pw-wrap { position: relative; }
.cea-pw-wrap .cea-input { padding-right: 42px; }
.cea-pw-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: #999; font-size: 14px; padding: 0;
}
.cea-pw-toggle:hover { color: #1a73e8; }

/* ---- Password strength ---- */
.cea-strength-row {
    display: flex; align-items: center; gap: 10px;
    margin-top: -10px; margin-bottom: 18px;
}
.cea-strength-bar { flex: 1; height: 4px; background: #eef0f3; border-radius: 4px; overflow: hidden; }
.cea-strength-fill { height: 100%; width: 0; border-radius: 4px; transition: width .3s, background .3s; }
.cea-strength-fill.weak   { width: 33%; background: #e53e3e; }
.cea-strength-fill.medium { width: 66%; background: #e6850e; }
.cea-strength-fill.strong { width: 100%; background: #38a169; }
.cea-strength-lbl { font-size: 12px; font-weight: 600; min-width: 50px; }

/* ---- Checkbox ---- */
.cea-terms { margin-top: 4px; }
.cea-chk-label {
    display: flex; align-items: flex-start; gap: 9px;
    font-size: 13px; color: #555; cursor: pointer; font-weight: 400;
}
.cea-chk-label input[type=checkbox] {
    margin-top: 2px; flex-shrink: 0; width: 15px; height: 15px; accent-color: #1a73e8;
}

/* ---- Buttons ---- */
.cea-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border: none; border-radius: 8px;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s;
    text-decoration: none;
}
.cea-btn-primary { background: #1a73e8; color: #fff; }
.cea-btn-primary:hover { background: #1558b0; color: #fff; text-decoration: none; }
.cea-btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.cea-btn-block { width: 100%; justify-content: center; margin-top: 8px; }

/* ---- Login link ---- */
.cea-login-link {
    text-align: center; margin-top: 18px; font-size: 13px; color: #666;
}
.cea-login-link a { color: #1a73e8; font-weight: 600; text-decoration: none; }
.cea-login-link a:hover { text-decoration: underline; }

/* ---- Benefits panel ---- */
.cea-benefits {
    background: #f8fafe;
    border-top: 1px solid #eef0f3;
    padding: 28px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.cea-benefits h4 {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .6px; color: #333; margin: 0 0 10px;
}
.cea-benefits ul { list-style: none; padding: 0; margin: 0; }
.cea-benefits li {
    display: flex; align-items: flex-start; gap: 9px;
    font-size: 13px; color: #444; padding: 4px 0;
}
.cea-benefits li i { font-size: 14px; color: #38a169; margin-top: 1px; flex-shrink: 0; }
.cea-benefits li i.cea-no { color: #e53e3e; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .cea-reg-header,
    .cea-reg-form-wrap,
    .cea-benefits { padding-left: 20px; padding-right: 20px; }
    .cea-form-row { grid-template-columns: 1fr; }
    .cea-benefits { grid-template-columns: 1fr; }
    .cea-alert { margin-left: 20px; margin-right: 20px; }
}
