/* ═══════════════════════════════════════════════════════════════
   CopySync – Signup Page Styles
   ═══════════════════════════════════════════════════════════════ */

/* ── Background ────────────────────────────────────────────── */
.signup-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.signup-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.signup-glow-1 {
    width: 500px;
    height: 500px;
    background: var(--cyan);
    top: -150px;
    left: -100px;
    opacity: 0.1;
    animation: floatGlow 8s ease-in-out infinite;
}

.signup-glow-2 {
    width: 400px;
    height: 400px;
    background: var(--purple);
    bottom: -100px;
    right: -50px;
    opacity: 0.08;
    animation: floatGlow 10s ease-in-out infinite reverse;
}

.signup-glow-3 {
    width: 350px;
    height: 350px;
    background: var(--green);
    top: 40%;
    left: 45%;
    opacity: 0.06;
    animation: floatGlow 12s ease-in-out infinite 2s;
}

.signup-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
}

/* ── Page Layout ───────────────────────────────────────────── */
.signup-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ── Left – Branding ──────────────────────────────────────── */
.signup-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    position: relative;
}

.signup-branding::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 0;
    bottom: 10%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border-color), var(--border-hover), var(--border-color), transparent);
}

.signup-branding-inner {
    max-width: 480px;
}

.signup-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 48px;
}

.signup-hero-title {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.signup-hero-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Benefits */
.signup-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.signup-benefit {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.benefit-icon {
    flex-shrink: 0;
    font-size: 22px;
    color: var(--green);
    margin-top: 2px;
}

.signup-benefit strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.signup-benefit span {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* Trust Bar */
.signup-trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.signup-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.signup-trust-item i {
    font-size: 16px;
    color: var(--cyan);
}

/* ── Right – Form ─────────────────────────────────────────── */
.signup-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
}

.signup-form-wrapper {
    width: 100%;
    max-width: 440px;
}

.signup-mobile-logo {
    display: none;
}

.signup-mobile-logo img {
    height: 32px;
    width: auto;
    margin-bottom: 28px;
}

.signup-form-header {
    margin-bottom: 32px;
}

.signup-form-header h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.signup-form-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ── Form Elements ─────────────────────────────────────────── */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper > i:first-child {
    position: absolute;
    left: 14px;
    font-size: 18px;
    color: var(--text-tertiary);
    pointer-events: none;
    transition: color 0.2s;
}

.input-wrapper input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s;
    outline: none;
}

.input-wrapper input::placeholder {
    color: var(--text-tertiary);
}

.input-wrapper input:focus {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08);
}

.input-wrapper input:focus ~ i:first-child,
.input-wrapper input:focus + .toggle-password,
.input-wrapper:has(input:focus) > i:first-child {
    color: var(--cyan);
}

/* Error state */
.form-group.error .input-wrapper input {
    border-color: #FF5252;
    box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.08);
}

.form-group.error .input-wrapper > i:first-child {
    color: #FF5252;
}

.form-error {
    font-size: 12px;
    color: #FF5252;
    min-height: 0;
    overflow: hidden;
    transition: all 0.2s;
}

.form-group.error .form-error {
    min-height: 16px;
}

/* Toggle password */
.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--text-primary);
}

/* Password strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
}

.strength-bar {
    flex: 1;
    height: 3px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.strength-text {
    font-size: 11px;
    font-weight: 600;
    min-width: 50px;
    text-align: right;
}

/* Checkbox */
.form-note {
    margin: -6px 0 0 28px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1px solid var(--border-hover);
    border-radius: 4px;
    background: var(--bg-card);
    cursor: pointer;
    margin-top: 2px;
    transition: all 0.2s;
    position: relative;
}

.form-checkbox input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--cyan), var(--green));
    border-color: transparent;
}

.form-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-checkbox label {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
}

.form-checkbox label a {
    color: var(--cyan);
    font-weight: 500;
}

.form-checkbox label a:hover {
    text-decoration: underline;
}

/* Submit button */
.signup-submit {
    margin-top: 4px;
    position: relative;
}

.signup-submit .btn-loader {
    animation: spin 0.8s linear infinite;
}

.signup-submit.loading .btn-text,
.signup-submit.loading .btn-arrow {
    opacity: 0;
}

.signup-submit.loading .btn-loader {
    display: inline-flex !important;
    position: absolute;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Success state */
.signup-success {
    text-align: center;
    padding: 32px 0;
}

.success-icon {
    font-size: 56px;
    color: var(--green);
    margin-bottom: 20px;
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
    0%   { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.signup-success h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
}

.signup-success p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Same shape as .signup-email-hint so the two read as one instruction, in a
   warmer tint so the trial is not mistaken for a second thing to do. Shown
   only when the visitor came from the Starter card. */
.signup-trial-hint {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(105, 240, 174, 0.07);
    border: 1px solid rgba(105, 240, 174, 0.20);
    border-radius: var(--radius-md, 12px);
    padding: 16px 20px;
    margin-bottom: 20px;
    text-align: left;
}

.signup-trial-hint > i {
    font-size: 22px;
    color: #69F0AE;
    flex-shrink: 0;
    margin-top: 1px;
}

.signup-trial-hint span {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.signup-trial-hint strong { color: var(--text-primary); }

/* ── What this registration activates ─────────────────────────
   Sits between the form heading and the first field, because that is where
   the visitor is still deciding whether this is the page they meant. Quiet by
   default; only the Starter variant is tinted, since it is the only one that
   turns something on by itself. */
.plan-panel {
    margin-bottom: 24px;
    padding: 16px 20px;
    border-radius: var(--radius-md, 12px);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
}

.plan-panel.is-trial {
    background: rgba(105, 240, 174, 0.06);
    border-color: rgba(105, 240, 174, 0.20);
}

.plan-panel-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}

.plan-panel-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.plan-panel-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.plan-panel.is-trial .plan-panel-title { color: #69F0AE; }

.plan-panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-panel-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.plan-panel-list li i {
    font-size: 15px;
    color: var(--cyan);
    flex-shrink: 0;
    margin-top: 2px;
}

.plan-panel.is-trial .plan-panel-list li i { color: #69F0AE; }

.plan-panel-list strong { color: var(--text-primary); font-weight: 650; }

.plan-panel-foot {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-tertiary);
}

.signup-email-hint {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-md, 12px);
    padding: 16px 20px;
    margin-bottom: 28px;
    text-align: left;
}

.signup-email-hint > i {
    font-size: 22px;
    color: var(--cyan);
    flex-shrink: 0;
    margin-top: 1px;
}

.signup-email-hint span {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.signup-email-hint strong {
    color: var(--cyan);
    font-weight: 600;
}

.signup-email-note {
    font-size: 12px !important;
    color: var(--text-tertiary) !important;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
}

.signup-email-note a {
    color: var(--cyan);
    font-weight: 600;
}

/* Footer */
.signup-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border-color);
}

.signup-footer p {
    font-size: 14px;
    color: var(--text-tertiary);
}

.signup-footer a {
    color: var(--cyan);
    font-weight: 600;
}

.signup-footer a:hover {
    text-decoration: underline;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .signup-page {
        grid-template-columns: 1fr;
    }

    .signup-branding {
        display: none;
    }

    .signup-form-section {
        padding: 40px 24px;
    }

    .signup-mobile-logo {
        display: block;
    }
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .signup-form-section {
        padding: 32px 16px;
    }
}

/* ── Global Error Banner ───────────────────────────────────── */
.signup-error {
    background: rgba(255, 82, 82, 0.08);
    border: 1px solid rgba(255, 82, 82, 0.25);
    border-radius: var(--radius-md, 12px);
    color: #FF8A80;
    font-size: 14px;
    line-height: 1.5;
    padding: 14px 20px;
    margin-top: 16px;
    text-align: center;
}

/* ── Legal Footer (Signup) ─────────────────────────────────── */
.signup-legal-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 24px 20px 32px;
}

.signup-legal-footer p {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin: 0;
}

.signup-legal-footer a {
    color: var(--text-tertiary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.signup-legal-footer a:hover {
    color: var(--text-secondary);
}

.signup-risk-note {
    margin-top: 8px !important;
    font-size: 0.72rem !important;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.signup-risk-note i {
    color: #FFB74D;
    vertical-align: middle;
    margin-right: 2px;
}
