* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.25), transparent 30%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.18), transparent 35%),
        #0f172a;
    color: #f8fafc;
}

.registro-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.registro-card {
    width: 100%;
    max-width: 560px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
}

.registro-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.registro-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.registro-brand span {
    font-size: 20px;
    font-weight: 800;
}

.registro-header {
    margin-bottom: 26px;
}

.registro-pill {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.18);
    color: #c7d2fe;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}

.registro-header h1 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.1;
}

.registro-header p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.6;
}

.registro-form {
    display: grid;
    gap: 16px;
}

.form-group {
    display: grid;
    gap: 7px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
}

.form-group input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    border-radius: 14px;
    padding: 13px 14px;
    font-size: 15px;
    outline: none;
}

.form-group input:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.16);
}

.form-group small {
    color: #94a3b8;
    font-size: 12px;
}

.subdomain-row {
    display: flex;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.85);
}

.subdomain-row input {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.subdomain-row input:focus {
    box-shadow: none;
}

.subdomain-row span {
    padding: 0 14px;
    color: #94a3b8;
    font-size: 14px;
    white-space: nowrap;
}

.registro-btn {
    margin-top: 8px;
    width: 100%;
    border: 0;
    border-radius: 16px;
    padding: 15px;
    background: linear-gradient(135deg, #6366f1, #0ea5e9);
    color: white;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.registro-btn:hover {
    transform: translateY(-1px);
}

.registro-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.registro-msg {
    display: none;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.4;
}

.registro-msg.error {
    display: block;
    background: rgba(127, 29, 29, 0.5);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.registro-msg.success {
    display: block;
    background: rgba(20, 83, 45, 0.5);
    color: #bbf7d0;
    border: 1px solid rgba(74, 222, 128, 0.35);
}

.registro-footer-text {
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    margin: 4px 0 0;
}

@media (max-width: 520px) {
    .registro-card {
        padding: 24px;
        border-radius: 20px;
    }

    .registro-header h1 {
        font-size: 27px;
    }

    .subdomain-row {
        flex-direction: column;
        align-items: stretch;
    }

    .subdomain-row span {
        padding: 0 14px 12px;
    }
}