/*
 * Career Coach AI customer entry and reviews UI.
 * Scoped to authentication and review pages only.
 */

.auth-page,
.cc-public-reviews,
.cc-review-entry {
    --entry-ink: #10132f;
    --entry-muted: #69728e;
    --entry-line: #e5e8f2;
    --entry-purple: #5b5ce2;
    --entry-purple-dark: #4546bb;
    --entry-green: #16865b;
    --entry-red: #b64151;
    min-height: 100vh;
    margin: 0;
    color: var(--entry-ink);
    background:
        radial-gradient(circle at 14% 8%, rgba(201, 214, 255, .5), transparent 28%),
        radial-gradient(circle at 92% 88%, rgba(215, 205, 255, .45), transparent 30%),
        #f7f8fc;
    font-family: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-page *,
.cc-public-reviews *,
.cc-review-entry * {
    box-sizing: border-box;
}

.auth-page a,
.cc-public-reviews a,
.cc-review-entry a {
    color: inherit;
    text-decoration: none;
}

.auth-page p,
.cc-public-reviews p,
.cc-review-entry p {
    white-space: normal;
}

/* Authentication navigation */
.auth-page .auth-nav {
    width: min(1140px, calc(100% - 40px));
    max-width: none;
    min-height: 74px;
    margin: 0 auto;
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.auth-page .auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--entry-ink);
    font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: normal;
    white-space: nowrap;
}

.auth-page .auth-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

.auth-page .auth-brand strong {
    color: #2867d9;
}

.auth-page .auth-nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.auth-page .auth-nav-links a {
    color: #68718c;
    font-size: 13px;
    font-weight: 700;
}

.auth-page .auth-nav-links a:hover {
    color: var(--entry-purple);
}

.auth-page .auth-nav-links .auth-nav-cta {
    min-height: 40px;
    padding: 10px 16px;
    color: #fff;
    background: var(--entry-ink);
    border-radius: 10px;
}

.auth-page .auth-nav-links .auth-nav-cta:hover {
    color: #fff;
    background: var(--entry-purple);
}

/* Authentication card */
.auth-page .auth-section {
    width: min(100% - 30px, 1060px);
    min-height: calc(100vh - 104px);
    margin: 0 auto;
    padding: 42px 0 70px;
    display: grid;
    place-items: center;
}

.auth-page .auth-card {
    position: relative;
    width: min(100%, 510px);
    margin: 0;
    padding: 38px;
    overflow: hidden;
    color: var(--entry-ink);
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 22px;
    box-shadow: 0 26px 75px rgba(39, 43, 96, .14);
    backdrop-filter: blur(18px);
}

.auth-page .auth-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    top: -110px;
    right: -95px;
    background: rgba(91, 92, 226, .1);
    border-radius: 50%;
    pointer-events: none;
}

.auth-page .auth-card > .badge {
    position: relative;
    display: inline-flex;
    margin: 0 0 16px;
    padding: 7px 10px;
    color: var(--entry-purple);
    background: #efefff;
    border: 1px solid #dfe0ff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.auth-page .auth-card h1 {
    position: relative;
    margin: 0 0 11px;
    color: var(--entry-ink);
    font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
    font-size: clamp(29px, 5vw, 38px);
    letter-spacing: -.055em;
    line-height: 1.12;
}

.auth-page .auth-description {
    position: relative;
    margin: 0 0 28px;
    color: var(--entry-muted);
    font-size: 14px;
    line-height: 1.65;
}

.auth-page .form-error,
.auth-page .form-success {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.5;
}

.auth-page .form-error {
    color: var(--entry-red);
    background: #fff1f2;
    border: 1px solid #f5d6da;
}

.auth-page .form-success {
    color: var(--entry-green);
    background: #ecf9f2;
    border: 1px solid #ccebdc;
}

.auth-page .verification-help {
    margin: -6px 0 18px;
    padding: 12px 14px;
    background: #f7f7ff;
    border: 1px solid #e5e5fa;
    border-radius: 11px;
}

.auth-page .verification-help p {
    margin: 0 0 4px;
    color: var(--entry-muted);
    font-size: 11px;
}

.auth-page .verification-help a {
    color: var(--entry-purple);
    font-size: 11px;
    font-weight: 800;
}

.auth-page .auth-field {
    margin-bottom: 18px;
}

.auth-page .auth-field > label,
.auth-page .password-label-row label {
    display: block;
    margin-bottom: 7px;
    color: #353b57;
    font-size: 12px;
    font-weight: 800;
}

.auth-page .password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.auth-page .forgot-link {
    margin-bottom: 7px;
    color: var(--entry-purple);
    font-size: 11px;
    font-weight: 750;
}

.auth-page .auth-field input[type="text"],
.auth-page .auth-field input[type="email"],
.auth-page .auth-field input[type="password"] {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    color: var(--entry-ink);
    background: #fafbfe;
    border: 1px solid #dfe3ed;
    border-radius: 11px;
    outline: none;
    font: inherit;
    font-size: 13px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-page .auth-field input:focus {
    background: #fff;
    border-color: #9b9ce8;
    box-shadow: 0 0 0 4px rgba(91, 92, 226, .1);
}

.auth-page .password-wrapper {
    position: relative;
}

.auth-page .password-wrapper input {
    padding-right: 68px;
}

.auth-page .password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    min-height: 34px;
    margin: 0;
    padding: 0 10px;
    color: var(--entry-purple);
    background: #eeeefe;
    border: 0;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    transform: translateY(-50%);
    cursor: pointer;
}

.auth-page .password-toggle:hover {
    background: #e2e3ff;
    transform: translateY(-50%);
}

.auth-page .password-requirement,
.auth-page .password-match-message {
    min-height: 16px;
    margin: 6px 0 0;
    color: #9299ac;
    font-size: 10px;
    line-height: 1.45;
}

.auth-page .match-success {
    color: var(--entry-green);
}

.auth-page .match-error {
    color: var(--entry-red);
}

.auth-page .terms-consent {
    margin: 3px 0 19px;
    padding: 12px;
    background: #f8f9fd;
    border: 1px solid var(--entry-line);
    border-radius: 10px;
}

.auth-page .terms-consent label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--entry-muted);
    font-size: 10px;
    line-height: 1.55;
}

.auth-page .terms-consent input {
    width: 15px;
    height: 15px;
    margin: 1px 0 0;
    accent-color: var(--entry-purple);
}

.auth-page .terms-consent a {
    color: var(--entry-purple);
    font-weight: 800;
}

.auth-page .auth-submit {
    width: 100%;
    min-height: 49px;
    margin: 2px 0 0;
    padding: 0 18px;
    color: #fff;
    background: var(--entry-purple);
    border: 0;
    border-radius: 11px;
    box-shadow: 0 12px 24px rgba(91, 92, 226, .22);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.auth-page .auth-submit:hover {
    background: var(--entry-purple-dark);
    transform: translateY(-2px);
}

.auth-page .auth-submit:disabled {
    opacity: .7;
    cursor: wait;
}

.auth-page .auth-divider {
    position: relative;
    margin: 24px 0 16px;
    text-align: center;
}

.auth-page .auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    border-top: 1px solid var(--entry-line);
}

.auth-page .auth-divider span {
    position: relative;
    padding: 0 10px;
    color: #9aa1b4;
    background: #fff;
    font-size: 10px;
    font-weight: 700;
}

.auth-page .auth-create-account,
.auth-page .auth-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    color: #555e7a;
    background: #f7f8fc;
    border: 1px solid var(--entry-line);
    border-radius: 11px;
    font-size: 12px;
    font-weight: 800;
}

.auth-page .auth-create-account:hover,
.auth-page .auth-link:hover {
    color: var(--entry-purple);
    background: #f0f0ff;
    border-color: #d7d8f9;
}

.auth-page .review-status {
    margin-bottom: 18px;
}

/* Reviews navigation */
.cc-public-reviews .site-nav,
.cc-review-entry .site-nav {
    width: min(1140px, calc(100% - 40px));
    max-width: none;
    min-height: 74px;
    margin: 0 auto;
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cc-public-reviews .brand,
.cc-review-entry .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--entry-ink);
    font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.035em;
}

.cc-public-reviews .brand img,
.cc-review-entry .brand img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 11px;
    box-shadow: 0 6px 18px rgba(91, 92, 226, .16);
}

.cc-public-reviews .brand strong,
.cc-review-entry .brand strong {
    color: var(--entry-purple);
}

.cc-public-reviews .site-nav .nav-links,
.cc-review-entry .site-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.cc-public-reviews .site-nav .nav-links a,
.cc-review-entry .site-nav .nav-links a {
    color: #68718c;
    font-size: 12px;
    font-weight: 750;
}

.cc-public-reviews .site-nav .nav-links a:hover,
.cc-review-entry .site-nav .nav-links a:hover {
    color: var(--entry-purple);
}

/* Public reviews */
.cc-public-reviews .reviews-page {
    width: min(1060px, calc(100% - 34px));
    max-width: none;
    margin: 0 auto;
    padding: 55px 0 90px;
}

.cc-public-reviews .reviews-heading {
    max-width: 680px;
    margin: 0 auto 38px;
    padding: 0;
    text-align: center;
}

.cc-public-reviews .reviews-heading .eyebrow,
.cc-review-entry .review-form-card .eyebrow {
    display: inline-flex;
    margin-bottom: 13px;
    color: var(--entry-purple);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.cc-public-reviews .reviews-heading h1,
.cc-review-entry .review-form-card h1 {
    margin: 0 0 13px;
    color: var(--entry-ink);
    font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
    font-size: clamp(34px, 6vw, 50px);
    letter-spacing: -.06em;
    line-height: 1.08;
}

.cc-public-reviews .reviews-heading > p {
    margin: 0;
    color: var(--entry-muted);
    font-size: 14px;
}

.cc-public-reviews .average-review {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin: 4px 0 18px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--entry-line);
    border-radius: 12px;
}

.cc-public-reviews .average-review strong {
    color: #e29b35;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 18px;
}

.cc-public-reviews .average-review span {
    color: var(--entry-muted);
    font-size: 11px;
}

.cc-public-reviews .review-page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 17px;
    color: #fff;
    background: var(--entry-purple);
    border-radius: 11px;
    box-shadow: 0 11px 23px rgba(91, 92, 226, .2);
    font-size: 12px;
    font-weight: 800;
}

.cc-public-reviews .public-review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.cc-public-reviews .public-review-card {
    min-height: 235px;
    padding: 25px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 18px;
    box-shadow: 0 16px 45px rgba(39, 43, 96, .09);
}

.cc-public-reviews .public-review-stars {
    margin-bottom: 17px;
    color: #e6a03c;
    letter-spacing: 2px;
}

.cc-public-reviews .public-review-stars .star-empty {
    color: #d8dbe5;
}

.cc-public-reviews .public-review-card blockquote {
    margin: 0 0 24px;
    color: #424b67;
    font-size: 14px;
    line-height: 1.7;
}

.cc-public-reviews .review-author {
    padding-top: 15px;
    border-top: 1px solid #eef0f5;
}

.cc-public-reviews .review-author strong,
.cc-public-reviews .review-author span,
.cc-public-reviews .review-author time {
    display: block;
}

.cc-public-reviews .review-author strong {
    color: var(--entry-ink);
    font-size: 12px;
}

.cc-public-reviews .review-author span,
.cc-public-reviews .review-author time {
    margin-top: 3px;
    color: #959caf;
    font-size: 9px;
}

.cc-public-reviews .empty-reviews {
    grid-column: 1 / -1;
    max-width: 610px;
    margin: 0 auto;
    padding: 44px 32px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--entry-line);
    border-radius: 20px;
    box-shadow: 0 18px 55px rgba(39, 43, 96, .09);
}

.cc-public-reviews .empty-reviews h2 {
    margin: 0 0 10px;
    color: var(--entry-ink);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 24px;
}

.cc-public-reviews .empty-reviews p {
    margin: 0 0 21px;
    color: var(--entry-muted);
    font-size: 13px;
    line-height: 1.65;
}

/* Leave-review form */
.cc-review-entry .review-page {
    width: min(100% - 30px, 780px);
    max-width: none;
    margin: 0 auto;
    padding: 50px 0 85px;
}

.cc-review-entry .review-form-card {
    margin: 0;
    padding: 38px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 22px;
    box-shadow: 0 26px 75px rgba(39, 43, 96, .13);
}

.cc-review-entry .review-introduction {
    max-width: 620px;
    margin: 0 0 24px;
    color: var(--entry-muted);
    font-size: 14px;
    line-height: 1.65;
}

.cc-review-entry .form-error,
.cc-review-entry .form-success,
.cc-review-entry .review-status {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 650;
}

.cc-review-entry .form-error {
    color: var(--entry-red);
    background: #fff1f2;
    border: 1px solid #f5d6da;
}

.cc-review-entry .form-success {
    color: var(--entry-green);
    background: #ecf9f2;
    border: 1px solid #ccebdc;
}

.cc-review-entry .review-status {
    color: #5f6680;
    background: #f6f7fc;
    border: 1px solid var(--entry-line);
}

.cc-review-entry .customer-review-form {
    display: grid;
    gap: 20px;
}

.cc-review-entry .rating-field {
    margin: 0;
    padding: 0;
    border: 0;
}

.cc-review-entry .rating-field legend,
.cc-review-entry .review-field > label {
    display: block;
    margin-bottom: 9px;
    color: #353b57;
    font-size: 12px;
    font-weight: 800;
}

.cc-review-entry .rating-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.cc-review-entry .rating-option {
    position: relative;
    cursor: pointer;
}

.cc-review-entry .rating-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cc-review-entry .rating-option span {
    display: grid;
    min-height: 44px;
    place-items: center;
    color: #8a91a6;
    background: #f8f9fc;
    border: 1px solid var(--entry-line);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
}

.cc-review-entry .rating-option input:checked + span {
    color: #a36a18;
    background: #fff4dd;
    border-color: #efc677;
    box-shadow: 0 0 0 3px rgba(239, 198, 119, .18);
}

.cc-review-entry .review-field textarea {
    width: 100%;
    min-height: 165px;
    margin: 0;
    padding: 14px;
    resize: vertical;
    color: var(--entry-ink);
    background: #fafbfe;
    border: 1px solid #dfe3ed;
    border-radius: 11px;
    outline: none;
    font: inherit;
    font-size: 13px;
    line-height: 1.6;
}

.cc-review-entry .review-field textarea:focus {
    background: #fff;
    border-color: #9b9ce8;
    box-shadow: 0 0 0 4px rgba(91, 92, 226, .1);
}

.cc-review-entry .review-field small {
    display: block;
    margin-top: 6px;
    color: #959caf;
    font-size: 9px;
    line-height: 1.5;
}

.cc-review-entry .review-permission {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    color: var(--entry-muted);
    background: #f8f9fc;
    border: 1px solid var(--entry-line);
    border-radius: 11px;
    font-size: 10px;
    line-height: 1.55;
}

.cc-review-entry .review-permission input {
    width: 15px;
    height: 15px;
    margin: 1px 0 0;
    accent-color: var(--entry-purple);
}

.cc-review-entry .review-submit-button {
    min-height: 49px;
    margin: 0;
    padding: 0 18px;
    color: #fff;
    background: var(--entry-purple);
    border: 0;
    border-radius: 11px;
    box-shadow: 0 12px 24px rgba(91, 92, 226, .22);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.cc-review-entry .review-submit-button:hover {
    background: var(--entry-purple-dark);
    transform: translateY(-2px);
}

@media (max-width: 720px) {
    .auth-page .auth-nav,
    .cc-public-reviews .site-nav,
    .cc-review-entry .site-nav {
        width: min(100% - 28px, 1140px);
    }

    .auth-page .auth-section {
        padding-top: 26px;
    }

    .auth-page .auth-card,
    .cc-review-entry .review-form-card {
        padding: 27px 22px;
        border-radius: 18px;
    }

    .auth-page .auth-nav-links a:first-child {
        display: none;
    }

    .cc-public-reviews .site-nav .nav-links,
    .cc-review-entry .site-nav .nav-links {
        gap: 11px;
    }

    .cc-public-reviews .site-nav .nav-links a,
    .cc-review-entry .site-nav .nav-links a {
        font-size: 10px;
    }

    .cc-public-reviews .public-review-grid {
        grid-template-columns: 1fr;
    }

    .cc-review-entry .rating-options {
        grid-template-columns: repeat(5, minmax(48px, 1fr));
        overflow-x: auto;
        padding-bottom: 4px;
    }
}

@media (max-width: 440px) {
    .auth-page .auth-brand,
    .cc-public-reviews .brand,
    .cc-review-entry .brand {
        font-size: 13px;
    }

    .auth-page .auth-brand img,
    .cc-public-reviews .brand img,
    .cc-review-entry .brand img {
        width: 34px;
        height: 34px;
    }

    .auth-page .auth-nav-links .auth-nav-cta {
        min-height: 36px;
        padding: 8px 11px;
        font-size: 10px;
    }

    .cc-public-reviews .site-nav .nav-links a:not(:last-child),
    .cc-review-entry .site-nav .nav-links a:not(:last-child) {
        display: none;
    }

    .cc-review-entry .rating-options {
        gap: 6px;
    }
}


/* Live theme audit: public review refinements */
.cc-public-reviews .reviews-page {
    color: var(--entry-ink);
    background: transparent;
    border: 0;
    box-shadow: none;
}

.cc-public-reviews .reviews-heading {
    color: var(--entry-ink);
}

.cc-public-reviews .public-review-grid {
    align-items: start;
}

.cc-public-reviews .public-review-card:only-child {
    grid-column: 1 / -1;
    width: min(100%, 760px);
    justify-self: center;
}

@media (max-width: 720px) {
    .cc-public-reviews .public-review-grid {
        grid-template-columns: 1fr;
    }
}
