/**
 * register_style.css — Stile pagine registrazione e conferma
 * Versione: 1.0
 * Data: 2026-04-10
 * Coerente con il tema dark della pagina di login (index.php)
 *
 * DEPLOY: /dati-energia/orchestratore/register_style.css
 */

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

body {
    min-height: 100vh;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    padding: 1rem;
}

/* ── Card principale ── */

.register-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

/* ── Logo / Header ── */

.logo-area {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.logo-area h1 {
    color: #f1f5f9;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.logo-area p {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.energy-tag {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.2);
    color: #4ade80;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* ── Alert ── */

.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.alert-error {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.3);
    color: #86efac;
}

.alert-info {
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.25);
    color: #93c5fd;
}

/* ── Form ── */

.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #f1f5f9;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder {
    color: #475569;
}

/* ── Checkbox consenso ── */

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: rgba(59,130,246,0.06);
    border: 1px solid rgba(59,130,246,0.15);
    border-radius: 8px;
}

.consent-row input[type="checkbox"] {
    accent-color: #3b82f6;
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.consent-row label {
    color: #cbd5e1;
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
}

.consent-row a {
    color: #60a5fa;
    text-decoration: underline;
}

.consent-row a:hover {
    color: #93c5fd;
}

/* ── Honeypot (nascosto, solo bot lo compilano) ── */

.hnpt {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ── Pulsante ── */

.btn-register {
    width: 100%;
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.875rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-register:hover {
    background: #16a34a;
}

.btn-register:active {
    transform: scale(0.98);
}

.btn-register:disabled {
    background: #475569;
    cursor: not-allowed;
}

/* ── Note password ── */

.pwd-hint {
    color: #64748b;
    font-size: 0.75rem;
    margin-top: 0.35rem;
    line-height: 1.4;
}

/* ── Footer ── */

.footer-note {
    text-align: center;
    margin-top: 2rem;
    color: #475569;
    font-size: 0.8rem;
}

.footer-note a {
    color: #60a5fa;
    text-decoration: none;
}

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

/* ── Trial info box ── */

.trial-info {
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: #86efac;
    line-height: 1.5;
}

.trial-info strong {
    color: #4ade80;
}

/* ── Confirm page specifics ── */

.confirm-message {
    text-align: center;
    padding: 1rem 0;
}

.confirm-message .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.confirm-message h2 {
    color: #f1f5f9;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.confirm-message p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
}

.btn-login-link {
    display: inline-block;
    background: #3b82f6;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: background 0.2s;
}

.btn-login-link:hover {
    background: #2563eb;
}

/* ── Responsive ── */

@media (max-width: 480px) {
    .register-card {
        padding: 2rem 1.25rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
