
        *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

        :root {
            --green:        #2E7D32;
            --green-light:  #4CAF50;
            --green-bright: #66BB6A;
            --green-dark:   #1B5E20;
            --radius:       16px;
        }

        @keyframes gradientIA {
            0%   { background-position: 0% 50%; }
            25%  { background-position: 100% 50%; }
            50%  { background-position: 100% 0%; }
            75%  { background-position: 0% 100%; }
            100% { background-position: 0% 50%; }
        }

        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(24px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        html, body {
            min-height: 100%;
            font-family: 'Nunito', sans-serif;
        }

        body {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            background: linear-gradient(-45deg, #0a1628, #1B5E20, #2E7D32, #4a0e6e, #1565C0, #0d3320);
            background-size: 400% 400%;
            animation: gradientIA 12s ease infinite;
            padding: 24px;
        }

        .card {
            background: #fff;
            border-radius: var(--radius);
            box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.1);
            padding: 44px 40px 36px;
            width: 100%;
            max-width: 500px;
            animation: fadeUp .5s ease both;
        }

        .logo-wrap { text-align: center; margin-bottom: 24px; }

        .logo-icon {
            width: 64px; height: 64px;
            background: linear-gradient(135deg, var(--green-dark), var(--green-light));
            border-radius: 18px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 12px;
            box-shadow: 0 8px 24px rgba(46,125,50,0.35);
        }

        .logo-icon i { color: #fff; font-size: 28px; }

        .logo-title {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-weight: 800;
            font-size: 24px;
            color: #0d1b2a;
            letter-spacing: -.5px;
        }

        .logo-title span { color: var(--green); }
        .logo-sub { font-size: 13px; color: #6b7280; margin-top: 2px; }

        /* ── ROLE SELECTOR ── */
        .role-label {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 13px;
            font-weight: 700;
            color: #374151;
            text-align: center;
            margin-bottom: 12px;
            text-transform: uppercase;
            letter-spacing: .05em;
        }

        .role-cards {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-bottom: 24px;
        }

        .role-card {
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            padding: 14px 8px 12px;
            text-align: center;
            cursor: pointer;
            transition: border-color .18s, background .18s, transform .15s, box-shadow .18s;
            user-select: none;
            background: #f9fafb;
        }

        .role-card:hover {
            border-color: #86efac;
            background: #f0fdf4;
            transform: translateY(-2px);
        }

        .role-card.selected {
            border-color: var(--green);
            background: #f0fdf4;
            box-shadow: 0 0 0 3px rgba(46,125,50,0.12);
        }

        .role-card .role-icon {
            font-size: 22px;
            margin-bottom: 6px;
            display: block;
        }

        .role-card .role-name {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-weight: 700;
            font-size: 12.5px;
            color: #374151;
            line-height: 1.2;
        }

        .role-card .role-desc {
            font-size: 11px;
            color: #9ca3af;
            margin-top: 3px;
            line-height: 1.3;
        }

        .role-card.selected .role-name { color: var(--green-dark); }
        .role-card.selected .role-icon { filter: none; }

        /* ── ALERTS ── */
        .alert {
            border-radius: 10px;
            padding: 12px 16px;
            font-size: 13.5px;
            margin-bottom: 20px;
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }

        .alert-error  { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
        .alert-success{ background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
        .alert i      { margin-top: 1px; flex-shrink: 0; }
        .error-list   { margin: 0; padding-left: 18px; }
        .error-list li{ margin-bottom: 2px; }

        /* ── FORM ── */
        .form-group { margin-bottom: 15px; }

        label {
            display: block;
            font-size: 13.5px;
            font-weight: 600;
            color: #374151;
            margin-bottom: 6px;
        }

        .input-wrap { position: relative; }

        .input-wrap i.icon-left {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: #9ca3af;
            font-size: 14px;
            pointer-events: none;
        }

        input[type="email"],
        input[type="password"],
        input[type="text"],
        select {
            width: 100%;
            padding: 11px 14px 11px 40px;
            border: 1.5px solid #e5e7eb;
            border-radius: 10px;
            font-family: 'Nunito', sans-serif;
            font-size: 14px;
            color: #111827;
            background: #f9fafb;
            outline: none;
            transition: border-color .2s, box-shadow .2s, background .2s;
            appearance: none;
        }

        input:focus, select:focus {
            border-color: var(--green);
            background: #fff;
            box-shadow: 0 0 0 3px rgba(46,125,50,0.12);
        }

        .input-wrap:focus-within i.icon-left { color: var(--green); }

        .toggle-pass {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #9ca3af;
            cursor: pointer;
            font-size: 14px;
            padding: 0;
        }

        .toggle-pass:hover { color: var(--green); }

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

        /* Strength bar */
        .strength-bar {
            margin-top: 6px;
            height: 4px;
            border-radius: 4px;
            background: #e5e7eb;
            overflow: hidden;
        }

        .strength-fill {
            height: 100%;
            border-radius: 4px;
            width: 0;
            transition: width .3s, background .3s;
        }

        .strength-text { font-size: 11.5px; margin-top: 4px; color: #9ca3af; }

        /* Conditional sections */
        .fields-nutriologo,
        .fields-clinica {
            display: none;
            border-top: 1.5px dashed #e5e7eb;
            margin-top: 4px;
            padding-top: 14px;
        }

        .fields-nutriologo.show,
        .fields-clinica.show { display: block; }

        .section-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: #f0fdf4;
            border: 1px solid #bbf7d0;
            color: #166534;
            border-radius: 6px;
            font-size: 11.5px;
            font-weight: 700;
            padding: 3px 10px;
            margin-bottom: 12px;
            text-transform: uppercase;
            letter-spacing: .04em;
        }

        /* Submit */
        .btn-primary {
            width: 100%;
            padding: 13px;
            background: linear-gradient(135deg, var(--green-dark), var(--green-light));
            color: #fff;
            border: none;
            border-radius: 10px;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-weight: 700;
            font-size: 15px;
            cursor: pointer;
            transition: opacity .2s, transform .15s, box-shadow .2s;
            box-shadow: 0 4px 16px rgba(46,125,50,0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 20px;
        }

        .btn-primary:hover  { opacity: .92; box-shadow: 0 6px 22px rgba(46,125,50,0.4); }
        .btn-primary:active { transform: scale(.98); }
        .btn-primary:disabled { opacity: .5; cursor: not-allowed; }

        .terms {
            font-size: 12.5px;
            color: #9ca3af;
            text-align: center;
            margin-top: 14px;
            line-height: 1.5;
        }

        .terms a { color: var(--green); text-decoration: none; font-weight: 600; }

        .divider {
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 18px 0;
            color: #9ca3af;
            font-size: 13px;
        }

        .divider::before, .divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: #e5e7eb;
        }

        .links { text-align: center; font-size: 14px; color: #6b7280; }
        .links a { color: var(--green); font-weight: 700; text-decoration: none; }
        .links a:hover { text-decoration: underline; }

        .btn-google {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            padding: 11px 14px;
            background: #fff;
            border: 1.5px solid #e5e7eb;
            border-radius: 10px;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-weight: 600;
            font-size: 14px;
            color: #374151;
            text-decoration: none;
            transition: border-color .2s, box-shadow .2s, background .2s;
            margin-bottom: 14px;
        }

        .btn-google:hover {
            border-color: #d1d5db;
            background: #f9fafb;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .google-note {
            font-size: 11.5px;
            color: #9ca3af;
            text-align: center;
            margin-top: -8px;
            margin-bottom: 6px;
        }

        /* ── CP LOOKUP ── */
        .cp-wrap {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .cp-wrap input {
            width: 130px;
            flex-shrink: 0;
            letter-spacing: .08em;
        }

        .cp-status {
            font-size: 14px;
            min-width: 18px;
            text-align: center;
        }

        .cp-hint {
            font-size: 11.5px;
            color: #9ca3af;
            margin-top: 4px;
        }

        select.input-cp {
            width: 100%;
            padding: 11px 14px 11px 40px;
            border: 1.5px solid #e5e7eb;
            border-radius: 10px;
            font-family: 'Nunito', sans-serif;
            font-size: 14px;
            color: #111827;
            background: #f9fafb;
            outline: none;
            transition: border-color .2s, box-shadow .2s;
            appearance: none;
            cursor: pointer;
        }

        select.input-cp:focus {
            border-color: var(--green);
            box-shadow: 0 0 0 3px rgba(46,125,50,0.12);
        }

        select.input-cp:disabled {
            color: #9ca3af;
            cursor: not-allowed;
        }

        input.readonly-addr {
            background: #f3f4f6 !important;
            color: #6b7280 !important;
            cursor: default;
            border-color: #e5e7eb !important;
        }

        @media (max-width: 480px) {
            .card { padding: 32px 22px 28px; }
            .role-cards { gap: 8px; }
            .role-card { padding: 12px 6px 10px; }
            .form-row { grid-template-columns: 1fr; }
        }