/* CreatorConnect auth surfaces — Upwork-inspired marketplace theme
   (structure/spacing inspired by Upwork; CreatorConnect branding retained) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --auth-green: #14a800;
    --auth-green-hover: #3c8224;
    --auth-green-soft: #eaf6e8;
    --auth-green-mist: #d4edda;
    --auth-text: #001e00;
    --auth-muted: #5e6d55;
    --auth-border: #d5e0d5;
    --auth-border-strong: #9aaa97;
    --auth-bg: #ffffff;
    --auth-card: #ffffff;
    --auth-danger: #b32d2e;
    --auth-danger-bg: #fce8e8;
    --auth-success: #0c7a3a;
    --auth-success-bg: #e7f6ec;
    --auth-shadow: 0 0 0 1px rgba(0, 30, 0, 0.04), 0 8px 24px rgba(0, 30, 0, 0.06);
}

body.auth-body,
.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--auth-text);
    background: #f2f2f2;
    background-image: none;
}

.cc-auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.cc-auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px 0;
}

.cc-auth-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--auth-text);
}

.cc-auth-brand img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.cc-auth-header-link {
    font-size: 0.95rem;
    color: var(--auth-muted);
}

.cc-auth-header-link a {
    color: var(--auth-green);
    font-weight: 600;
    text-decoration: none;
}

.cc-auth-header-link a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cc-auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px 64px;
}

.cc-signup-shell {
    width: 100%;
    max-width: 720px;
}

.cc-signup-shell.narrow {
    max-width: 420px;
}

.cc-signup-title {
    text-align: center;
    margin: 0 0 10px;
    font-size: 2.15rem;
    font-weight: 700;
    color: var(--auth-text);
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.cc-signup-sub {
    text-align: center;
    color: var(--auth-muted);
    font-size: 1.05rem;
    margin: 0 0 36px;
    font-weight: 400;
}

.cc-role-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.cc-role-card {
    display: block;
    background: var(--auth-card);
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

.cc-role-card:hover {
    border-color: var(--auth-green);
    box-shadow: var(--auth-shadow);
    color: inherit;
}

.cc-role-card__art {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 55%, rgba(180, 230, 120, 0.55) 0%, transparent 58%),
        linear-gradient(180deg, #f3fbe8 0%, #ffffff 100%);
}

.cc-role-card__art i {
    font-size: 3.1rem;
    color: #001e00;
}

.cc-role-card__body {
    padding: 18px 20px 22px;
}

.cc-role-card__body h2 {
    margin: 0 0 6px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--auth-text);
}

.cc-role-card__body h2 span {
    color: var(--auth-text);
    font-weight: 700;
}

.cc-role-card__body p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 0.95rem;
}

.cc-auth-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.cc-auth-card.is-panel {
    background: var(--auth-card);
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    padding: 36px 32px 28px;
    box-shadow: var(--auth-shadow);
}

.cc-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--auth-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 20px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.cc-auth-back:hover {
    color: var(--auth-green);
}

.cc-auth-card h1,
.cc-auth-heading {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--auth-text);
    text-align: center;
    margin: 0 0 28px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.cc-auth-card .cc-auth-sub {
    text-align: center;
    color: var(--auth-muted);
    font-size: 0.98rem;
    margin: -12px 0 28px;
    line-height: 1.5;
}

.cc-auth-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--auth-text);
    margin-bottom: 8px;
}

.cc-auth-email-preview {
    background: var(--auth-green-soft);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.95rem;
    color: var(--auth-text);
    margin-bottom: 18px;
    word-break: break-all;
}

.cc-auth-field {
    margin-bottom: 16px;
    position: relative;
}

.cc-auth-field .form-control {
    height: 48px;
    border-radius: 10px;
    border: 1.5px solid var(--auth-border);
    padding: 0 16px;
    font-size: 1rem;
    color: var(--auth-text);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.cc-auth-field .form-control::placeholder {
    color: #8a9a86;
}

.cc-auth-field .form-control:focus {
    border-color: var(--auth-green);
    box-shadow: 0 0 0 3px rgba(20, 168, 0, 0.15);
    outline: none;
}

.cc-auth-field .form-control.is-invalid {
    border-color: var(--auth-danger);
}

.cc-auth-field.has-toggle .form-control {
    padding-right: 44px;
}

.cc-auth-field .toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--auth-muted);
    padding: 4px;
    cursor: pointer;
}

.cc-auth-field .toggle-pw:hover {
    color: var(--auth-green);
}

.cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

.cc-btn:disabled,
.cc-btn.is-busy {
    opacity: 0.65;
    pointer-events: none;
}

.cc-btn-primary {
    background: var(--auth-green);
    color: #fff;
    border-color: var(--auth-green);
    border-radius: 8px;
}

.cc-btn-primary:hover {
    background: var(--auth-green-hover);
    border-color: var(--auth-green-hover);
    color: #fff;
}

.cc-btn-google,
.cc-btn-secondary {
    background: #fff;
    border-color: var(--auth-border-strong);
    color: var(--auth-text);
    border-radius: 8px;
}

.cc-btn-google:hover,
.cc-btn-secondary:hover {
    background: #f7faf7;
    border-color: #7d8f7a;
    color: var(--auth-text);
}

.cc-btn-outline {
    background: #fff;
    border-color: var(--auth-green);
    color: var(--auth-green);
    border-radius: 8px;
}

.cc-btn-outline:hover {
    background: var(--auth-green-soft);
    color: var(--auth-green-hover);
}

.cc-google-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.cc-auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: var(--auth-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cc-auth-divider::before,
.cc-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

.cc-auth-stack > * + * {
    margin-top: 14px;
}

.cc-auth-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 0.95rem;
    color: var(--auth-muted);
}

.cc-auth-footer a {
    color: var(--auth-green);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cc-auth-footer a:hover {
    color: var(--auth-green-hover);
}

.cc-auth-meta {
    display: flex;
    justify-content: flex-end;
    margin: 4px 0 18px;
    font-size: 0.9rem;
}

.cc-auth-meta a {
    color: var(--auth-green);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

.cc-auth-meta a:hover {
    color: var(--auth-green-hover);
}

.cc-auth-alert {
    border-radius: 10px;
    border: none;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.cc-auth-alert.danger {
    background: var(--auth-danger-bg);
    color: var(--auth-danger);
}

.cc-auth-alert.success {
    background: var(--auth-success-bg);
    color: var(--auth-success);
}

.cc-auth-alert.info {
    background: var(--auth-green-soft);
    color: #0b5c00;
}

.cc-field-error {
    color: var(--auth-danger);
    font-size: 0.82rem;
    margin-top: 6px;
    display: none;
}

.cc-field-error.is-visible {
    display: block;
}

.cc-step { display: none; }
.cc-step.is-active { display: block; }

.text-danger {
    font-size: 0.82rem;
    color: var(--auth-danger) !important;
}

/* OTP modal */
.otp-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 30, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 20px;
}

.otp-modal-backdrop.is-open { display: flex; }

.otp-modal {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 20px 60px rgba(0, 30, 0, 0.18);
}

.otp-modal h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--auth-text);
    margin-bottom: 0.35rem;
}

.otp-modal .hint {
    color: var(--auth-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.otp-modal .form-control {
    letter-spacing: 0.35em;
    font-size: 1.35rem;
    text-align: center;
    font-weight: 600;
    border-radius: 10px;
    border: 1.5px solid var(--auth-border);
}

.otp-modal .form-control:focus {
    border-color: var(--auth-green);
    box-shadow: 0 0 0 3px rgba(20, 168, 0, 0.15);
}

.otp-modal .btn-verify {
    background: var(--auth-green);
    border-color: var(--auth-green);
    width: 100%;
    font-weight: 600;
    border-radius: 999px;
    height: 44px;
}

.otp-modal .btn-verify:hover {
    background: var(--auth-green-hover);
    border-color: var(--auth-green-hover);
}

.otp-modal .resend-row {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.92rem;
}

.otp-modal .btn-link {
    color: var(--auth-green);
    font-weight: 600;
}

/* —— Login page (Upwork-style card) —— */
.cc-login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f2f2f2;
}

.cc-login-top {
    padding: 28px 40px 0;
}

.cc-login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 40px;
}

.cc-login-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px 40px 32px;
    box-shadow: none;
}

.cc-login-title {
    margin: 0 0 28px;
    text-align: center;
    font-size: 1.65rem;
    font-weight: 700;
    color: #001e00;
    letter-spacing: -0.02em;
}

.cc-login-field {
    position: relative;
    margin-bottom: 16px;
}

.cc-login-field__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aaa97;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 1;
}

.cc-login-field .form-control {
    height: 44px;
    border-radius: 8px;
    border: 1px solid #b4b4b4;
    padding: 0 14px 0 42px;
    font-size: 0.98rem;
    color: #001e00;
    background: #fff;
}

.cc-login-field .form-control::placeholder {
    color: #8c8c8c;
}

.cc-login-field .form-control:focus {
    border-color: #001e00;
    box-shadow: none;
    outline: none;
}

.cc-login-field .form-control.is-invalid {
    border-color: var(--auth-danger);
}

.cc-login-continue {
    margin-top: 4px;
    border-radius: 8px !important;
    height: 44px;
}

.cc-login-google {
    border-radius: 8px !important;
    height: 44px;
    border-color: #001e00 !important;
}

.cc-login-signup {
    margin-top: 36px;
    text-align: center;
}

.cc-login-signup p {
    margin: 0 0 14px;
    color: #5e6d55;
    font-size: 0.95rem;
}

.cc-login-signup-btn {
    width: auto !important;
    min-width: 140px;
    padding: 0 28px;
    height: 40px;
    border-radius: 8px !important;
    border-width: 2px;
    display: inline-flex !important;
}

.cc-login-footer {
    background: #1d1d1d;
    color: #fff;
    text-align: center;
    padding: 16px 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.cc-login-footer a {
    color: #fff;
    text-decoration: none;
}

.cc-login-footer a:hover {
    text-decoration: underline;
}

.cc-login-footer__sep {
    opacity: 0.55;
}

.cc-login-page .cc-btn-primary {
    border-radius: 8px;
}

.cc-login-page .cc-btn-outline {
    border-radius: 8px;
}

.cc-terms-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 8px;
    text-align: left;
    font-size: 0.9rem;
    color: var(--auth-text);
    line-height: 1.4;
}

.cc-terms-consent input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--auth-green);
    flex-shrink: 0;
    cursor: pointer;
}

.cc-terms-consent label {
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

.cc-terms-consent a {
    color: var(--auth-green);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cc-terms-title {
    margin: 20px 0 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--auth-text);
    text-align: left;
}

.cc-terms-error {
    color: var(--auth-danger);
    font-size: 0.82rem;
    margin: 0 0 12px;
    display: none;
    text-align: left;
}

.cc-terms-error.is-visible {
    display: block;
}

@media (max-width: 640px) {
    .cc-auth-header { padding: 20px 20px 0; }
    .cc-role-grid { grid-template-columns: 1fr; }
    .cc-signup-title { font-size: 1.7rem; }
    .cc-auth-card h1,
    .cc-auth-heading { font-size: 1.5rem; }
    .cc-auth-main { padding: 28px 16px 40px; }
    .cc-role-card__art { height: 140px; }
    .cc-auth-card.is-panel { padding: 28px 20px 24px; }
    .cc-login-top { padding: 20px 20px 0; }
    .cc-login-card { padding: 32px 22px 28px; }
    .cc-login-title { font-size: 1.4rem; }
}

